How to call a jquery function onload with some delay?

前端 未结 5 794
闹比i
闹比i 2021-01-23 21:53

How to call a jquery function onload with some delay?

I want to call a function like this on load with some delay

$(\".sample\").live(\'click\',function(         


        
5条回答
  •  太阳男子
    2021-01-23 22:16

    Try to use Timer Plugin

    $(this).oneTime(1000, function() {
         // some action here
    });
    

提交回复
热议问题