我需要检测我的浏览器处于等待状态或繁忙状态使用Jquery并实现一个加载程序也。我已经使用的代码如下如何检测我的浏览器繁忙或等待状态使用jquery
<script type="text/javascript" src="/assets/script/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function() {
$.ajax({
type: "GET",
url: "sync_bills.php",
success: function(resp) {
$("#results").html(resp);
}
});
});
</script>
<div id="results"><img src="images/loading.gif" width="16" height="16" alt="Loading..." /></div>
ahm你会发现什么?可能是异步和同步机制可能是你的查询提示 – donald123
提供的代码有什么问题?预期的行为是什么?请你能详细阐述一下吗? – fcalderan