Do something AFTER the page has loaded completely

前端 未结 8 681
日久生厌
日久生厌 2020-12-08 20:41

I\'m using some embed codes that insert HTML to the page dynamically and since I have to modify that dynamically inserted HTML, I want a jquery function to wait until the pa

8条回答
  •  囚心锁ツ
    2020-12-08 21:11

    The load() method was deprecated in jQuery version 1.8 and removed in version 3.0. So you have to use -

    $(window).on('load', function() {
     // code here
    });
    

提交回复
热议问题