[英]How to get the ajax start event and stop event
我的应用程序中有很多ajax请求。 我在我的应用程序中使用jquery ajaxStart和ajaxStop来显示加载符号。 但是他们没有工作。 我用Google搜索出来,但是没有找到正确的解决方案。 我正在这样使用
$( document ).ajaxStart(function() {
Actions.showLoading("Loading");
});
$( document ).ajaxStop(function() {
Actions.hideLoading();
});
jQuery的
如果在全局选项设置为false的情况下调用$ .ajax()或$ .ajaxSetup(),则不会触发.ajaxStart()方法。
检查您的代码,然后重试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.