①form表单的参数序列化后,然后提交。

$.ajax({
	type: 'post',
	url:$form1.attr("action"),
	data:$form1.serializeArray(),//序列化参数
	dataType:"json",
	success: function(json){
			if("200" == json.statusCode){
		}else{
			alertMsg.warn(json.message);
		}
	}
});

②form表单的onsubmit( ) 就是在提交按钮的同时进行的操作。通过我们有回调验证等。

οnsubmit="return validateCallback(this, dialogAjaxDone)"