Each event in jquery is executed in the following order:
1.ajaxStart (Global event)
2.beforeSend (Local event)
3.ajaxSend (Global event)
4.success (Local event)
5.ajaxSuccess (Global event)
6.error (Local event)
7.ajaxError (Global event)
8.complete (Local event)
9.ajaxComplete (Global event)
10.ajaxStop (Global event)
In this case, global events can be referenced outside of Ajax-related methods (for example, to display information about the various stages of Ajax execution somewhere on the page in this way).
The following example shows the order in which events are performed during an AJAX request, and how global Ajax is used
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd" >
The above is a small set of jquery to introduce the AJAX global event reference mode and the various events (global/local) implementation of the Order of knowledge, I hope to help!