from表单利用jquery给提交按钮设置点击事件无效
zb-风 2017-10-12 05:10:42 $(document).ready(function() {
$("#sub").click(function(){
alert(111);
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: "/save/add",
data:$("#form_sample_1").serialize(),
success:function(result){
alert(result);
},
error:function(){
}
})
})
})