ajax一次获取整个表单的数据

$.ajax({
	cache: true,
	type: "POST",
	url:ajaxCallUrl,
	data:$('#yourformid').serialize(),// 你的formid
	async: false,
	error: function(request) {
		alert("Connection error");
	},
	success: function(data) {
		$("#commonLayout_appcreshi").parent().html(data);\
	}
});

 

posted @ 2018-03-29 10:39  安筱雨  阅读(8202)  评论(0编辑  收藏  举报