jQuery Simple Method for Registering and Disabling Global Events

  • 2021-07-04 18:11:48
  • OfStack

This article illustrates how jQuery simply registers and disables global events. Share it for your reference, as follows:

//jQuery Registration ajax Global event ajaxStart , ajaxStop : 
//ajax Request to disable global events: 
//$.ajax()  There is a parameter global ( Default : true)  Whether to trigger the global  AJAX  Events .
// Set to  false  Will not trigger the global  AJAX  Events, 
// Such as  ajaxStart  Or  ajaxStop  Can be used to control different  Ajax  Events. 

For more readers interested in jQuery related content, please check the topics of this site: "Summary of Ajax Usage in jquery", "Summary of jQuery form Operation Skills", "Summary of jQuery Common Plug-ins and Usage", "Summary of jQuery Operation json Data Skills", "Summary of jQuery Extension Skills", "Summary of jQuery Drag Effects and Skills", "Summary of jQuery Table (table) Operation Skills", "Summary of jQuery Common Classic Special Effects", "Summary of jQuery Animation and Special Effects Usage" and "Summary of jquery Selector Usage"

I hope this article is helpful to everyone's jQuery programming.

Related articles: