更新时间:2022-06-12 23:32:45
如果您想确保脚本启动完毕图像已被加载,然后使用
If you want to make sure a script launches after all the images have been loaded, then use
$(window).load(function() {
//.......................
});
这个事件只会在所有脚本,css,js, $(document).ready();
This event, will only fire once all the scripts, css, js, images have been load, unlike $(document).ready();