代码
$(document).ajaxStart(function(){
$(".loading").show();
}).ajaxStop(function(){
$(".loading").hide();
});
经测试firefox上正常加载,chrome上没法正常加载。
update:
已找到解决办法,是由于设置了async:false造成的,删除即可。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号