码迷,mamicode.com
首页 > Web开发 > 详细

jquery ajax事件

时间:2015-12-29 00:54:20      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

$.ajax({
type : ‘POST‘,
url : ‘user.php‘,
data : $(‘form‘).serialize(),
success : function (response, status, xhr) {
alert(‘请求成功后‘);
},
complete : function () {
alert(‘请求完成后,不管是否失败成功‘);
},
beforeSend : function () {
alert(‘发送请求之前执行‘);
},
error : function () {
alert(‘请求失败后‘);
}
});

 

jquery ajax事件

标签:

原文地址:http://www.cnblogs.com/BinBinGo/p/5084367.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!