JavaScript Cursor Change (and change back again)

前端 未结 7 1934
日久生厌
日久生厌 2021-01-17 11:14

I have this page that does some funky database stuff that takes a couple seconds to process, and in the meantime I\'d like to set a \"wait\" cursor so the user

相关标签:
7条回答
  • 2021-01-17 11:53

    I tried everything but finally this jquery worked, especially if you want wait cursor over all elements including buttons and links.

    define at the top of angular .ts file

    declare var $: any;

    and then where ever you want wait cursor:

    $('*').css('cursor','wait');

    and remove wait:

    $('*').css('cursor','auto');

    0 讨论(0)
提交回复
热议问题