Home  >  Article  >  Web Front-end  >  Jquery ajaxStart() and ajaxStop() methods (explanation with examples)_jquery

Jquery ajaxStart() and ajaxStop() methods (explanation with examples)_jquery

WBOY
WBOYOriginal
2016-05-16 17:08:301063browse

jQuery provides similar functions through the ajaxStart() and ajaxStop() methods. When an Ajax request is started and there are no other outstanding Ajax requests, the ajaxStart() method is called. Similarly, the ajaxStop() method is called when all Ajax requests are completed. The parameter of these methods is a function that will be called when the event occurs.

Example

Copy code The code is as follows:

< html xmlns="http://www.w3.org/1999/xhtml" >

Untitled page










                                                                    ​



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