1.submit提交
function add() {
$("#remarkAccountTable").submit();
}2.ajax提交
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"; }); } }); }