Jquery ajaxStart doesnt get triggered

前端 未结 3 644
不思量自难忘°
不思量自难忘° 2020-12-09 17:21

This code

$(\"#loading\").ajaxStart(function() {
        alert(\"start\");
        $(this).show();
    });

in my mark-up

&l         


        
3条回答
  •  攒了一身酷
    2020-12-09 17:58

    I'm not sure if this will fix your issue, but generally I use debug.info('your message') in combination with the Firebug console instead of alert(), as alert interrupts your script processing until you dismiss it whereas debug.info is fairly unobtrusive.

    You can download the implementation of debug.info here.

提交回复
热议问题