开发者

$().ajaxStart not firing

开发者 https://www.devze.com 2022-12-26 06:54 出处:网络
I have this at the top of my jQuery script: $().ajaxStart(function() { alert(\'ok\'); }); But the alert is not firing.

I have this at the top of my jQuery script:

   $().ajaxStart(function() {
      alert('ok');
   });

But the alert is not firing. All th开发者_运维问答e other ajax is working, so I'm not sure why this isn't.


Try calling ajaxStart on document:

$(document).ajaxStart(function() {
    alert('ok');
});

$().ajaxStart worked before jQuery 1.4 but no more.


Please try this:

$(document).ajaxStart(function(){alert("aa");});

HTH

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号