I want to show the cursor as progress
on every load.
Is it possible to show the cursor as progress
when the browser is 开发者_如何学运维busy?
If not, is it possible to show the cursor as progress
if jQuery is posting
without adding code to every jQuery post function?
I'm looking for a clean and global solution.
try:
$().ajaxStart(function(){
$('body').css('cursor', 'wait');
});
$().ajaxStop(function(){
$('body').css('cursor', 'auto');
});
and it will invoked when an ajax process called...
精彩评论