The examples in this article describe how jquery simply registers and disables global events. Share to everyone for your reference, specific as follows:
jquery Registers Ajax Global Event Ajaxstart,ajaxstop:
$ (document). Ajaxstart (function () {
$ (#background, #progressBar). Show ();
}). Ajaxstop (function () {
$ (#background, #progressBar). Hide ();
};
Ajax request disables global events:
//$.ajax () has a parameter global (default: TRUE) to trigger global AJAX events.
Setting to FALSE will not trigger global AJAX events,
//such as Ajaxstart or ajaxstop can be used to control different AJAX events.
More interested readers of jquery-related content can view this site: A summary of Ajax usage in jquery, a summary of the jquery form operation tips, a summary of common plug-ins and usage in jquery, a summary of jquery operations JSON data techniques, jquery Extension Tips Summary, jquery drag-and-drop effects and tips summary, jquery table (table) Operation tips Summary, "jquery Common Classic Effects Summary", "jquery animation and special effects usage Summary" and "jquery Selector usage Summary"
I hope this article will help you with the jquery program design.