Home > Backend Development > PHP Tutorial > Parsing the calling sequence of ajax events_PHP tutorial

Parsing the calling sequence of ajax events_PHP tutorial

WBOY
Release: 2016-07-21 15:06:36
Original
834 people have browsed it

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)

www.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)...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template