我们收到了一个约30秒的ajax请求:将用户转到另一个页面。在此期间,我们会显示一个ajaxy旋转器指示器,但是浏览器也可能“出现”卡住的情况,因为浏览器客户端实际上并没有工作或显示自己的加载消息。
有没有一种简单的方法来告诉所有主要的浏览器来使用JS命令呢?
谢谢!
3条回答 默认 最新
- weixin_33726318 2009-08-08 06:05关注
jquery?
$('html').ajaxStart(function() { $('#busyindicator').show(); } ); $('html').ajaxStop(function() { $('#busyindicator').hide(); } );
But maybe I'm not understanding your question. what does 'look busy' mean ? Do you mean get the browser's progress bar or native busy indicator active? Don't think you can do that...
解决 无用评论 打赏 举报