What jQuery event is called right after $(document).ready()?

前端 未结 8 890
囚心锁ツ
囚心锁ツ 2021-01-13 08:47

I have lots of HTML generated on $(document).ready(). I have a simple window system. But not only it is generated on $(document).ready() - also som

8条回答
  •  醉梦人生
    2021-01-13 09:20

    You can use

    $(window).on('load', function () {
       alert("Window Loaded");
    });
    
    $(window).load(function(){
       alert("Window Loaded");
    }
    

    has been removed from jQuery.

提交回复
热议问题