jQuery and setTimeout

后端 未结 4 1631
粉色の甜心
粉色の甜心 2021-01-27 02:37

I have the following code:

            jQuery(document).ready(function()
            {
setTimeout($(\'#loading\').fadeIn(\'slow\'), 9999);
            });
         


        
4条回答
  •  耶瑟儿~
    2021-01-27 03:05

    You can also use jQuery's .delay().

    $('#loading').delay(9999).fadeIn('slow');

提交回复
热议问题