解析ajax事件的调用顺序
发布时间:2020-12-15 23:35:28 所属栏目:百科 来源:网络整理
导读:代码如下: $.ajax({ type: "GET", dateType:"html", url: "index.html", error: function(msg) { alert("error"); }, complete: function(msg) { alert("complete"); }, success: function(msg) { alert("success"); } }); 1.ajaxStart(全局事件) 2.beforeSe
代码如下: $.ajax({ type: "GET", dateType:"html", url: "index.html", error: function(msg) { alert("error"); }, complete: function(msg) { alert("complete"); }, success: function(msg) { alert("success"); } }); 1.ajaxStart(全局事件) 2.beforeSend 3.ajaxSend(全局事件) 4.success 5.ajaxSuccess(全局事件) 6.error 7.ajaxError (全局事件) 8.complete 9.ajaxComplete(全局事件) 10.ajaxStop(全局事件) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |