jquery’s ajax request method:
Copy code The code is as follows:
$.ajax({
type: "GET",
dateType: "html",
url: "index.html",
error: function(msg) { alert("error") ; },
complete: function(msg) { alert("complete"); },
success: function(msg) { alert("success"); }
});
The execution order of each event in jquery is as follows:
1.ajaxStart (global event)
2.beforeSend
3.ajaxSend (Global event)
4.success
5.ajaxSuccess (Global event)
6.error
7.ajaxError (Global event)
8.complete
9.ajaxComplete (Global event Event)
10.ajaxStop (global event)
http://www.bkjia.com/PHPjc/327603.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327603.htmlTechArticlejquery’s ajax request method: Copy the code as follows: $.ajax({ type: "GET", dateType: "html", url: "index.html", error: function(msg) { alert("error"); }, complete: function(msg)...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn