Ajax提交form表单

时间:2014-08-29 19:46:58   收藏:0   阅读:301
 1 $.ajax({
 2   cache: true,
 3   type: "POST",
 4   url:ajaxCallUrl,
 5   data:$(‘#yourformid‘).serialize(),// 你的formid
 6   async: false,
 7   error: function(request) {
 8     alert("Connection error");
 9   },
10   success: function(data) {
11     $("#commonLayout_appcreshi").parent().html(data);
12   }
13 });

 

 

原文:http://www.cnblogs.com/shangrongyiweng/p/3945494.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!