JQuery wait x seconds after document ready

前端 未结 4 799
一个人的身影
一个人的身影 2020-12-05 09:33

following code waits till dom ready

jQuery(document).ready(function(){

what do i have to write to simple let the execution of the jquery fu

4条回答
  •  既然无缘
    2020-12-05 10:00

    You can use

    $(window).load(function(){}); 
    

    instead of

    $(document).ready(function(){});
    

    I took reference from jquery forum

提交回复
热议问题