如果这不是提问的合适地方,我很抱歉。
我根据 documentation 确定知道ajaxStop()
函数的以下功能:
Whenever an AJAX request is completed, jQuery checks whether there are any other outstanding AJAX requests, if there are no requests remaining, then jQuery triggers the ajaxStop event.
我似乎无法理解的是它内部是如何做到这一点的。它如何知道所有ajax请求都在页面中结束了?
最佳答案
关于jquery - ajaxStop 函数内部如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53481664/