How to change cursor to wait when using jQuery .load()

后端 未结 8 653
孤街浪徒
孤街浪徒 2020-12-08 13:35

While waiting for a response from a .load(), is there any way to change the cursor to the busy/wait cursor?

8条回答
  •  没有蜡笔的小新
    2020-12-08 13:51

    You can use this:

    $('body').css('cursor', 'progress'); 
    

    before you start loading and once complete change the cursor to auto

提交回复
热议问题