Execute jQuery code after all CSS rules have been applied

后端 未结 2 377
日久生厌
日久生厌 2021-01-12 15:58

$(document).ready() executes the code when all HTML elements have been loaded.

How to execute jQuery code after all of the CSS rules have been applied?<

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 16:18

    $(window).load(function() {
    
     // executes when complete page is fully loaded, including all frames, objects and images
    
     alert("window is loaded");
    
    });
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题