1
我需要爲頁面添加一組Ajax加載指標(不同的DIV)。我已經成功加載了一個Ajax加載指標。如何爲頁面添加一組Ajax加載指標
<script type="text/javascript">
$(".loader").bind("ajaxSend", function() {
$(this).show();
}).bind("ajaxStop", function() {
$(this).hide();
}).bind("ajaxError", function() {
$(this).hide();
});
</script>
<div class="loader" style="display: none;">
<img id="img-loader" src="images/loading.gif" alt="Loading" />
</div>
預先感謝!
請重新表述您的語句在問題的形式,並添加更多的細節。 –
那真正的問題是什麼? –
如何爲頁面添加一組Ajax加載指示器? – Dinesh