1
ajaxStart function
工作正常。但模态窗口不隐藏在ajaxStop function
的jquery
中。模态窗口不会隐藏在jquery中的ajaxStop函数
这是我的代码
$(document).ajaxStop(function() {
$('#loading-modal').modal('hide');
});
有在console
一个error
。 Uncaught TypeError: $(...).modal is not a function
可否请您在隐藏代码之前加上'alert(1)',并确认是否执行了'ajaxStop'。也请分享HTML。 – vijayP
是它执行。 –
检查你的js文件是否被盗用。 –