1.submit提交 ajax
function add() {async
$("#remarkAccountTable").submit();
}url
2.ajax提交orm
function submitForm(){
$.ajax({
type: "POST",
url:"joinSociatyProjectByFront/addjoinSociatyProject",
data:$('#dataForm').serialize(),// 序列化表單值
async: false,
error: function(request) {
alert("提交出錯 error");
},
success: function(data) {
layer.msg("提交成功!",{icon:0, shade:0.1},function(){
window.location.href="/toJfGame";
});
}
});
}ci