jQuery以ajax方式提交表单数据

jopen 10年前

              var urls = "${pageContext.request.contextPath}/action/test.do";                $.ajax({                    url: urls,                    type:'post',                     async:false,                    data:$('#form1').serialize(),                    success: function(msg){                        if(msg == "true"){                            alert(" 提交成功!");                            return false;                        }                    }                });            }