如何检测页面是否已使用jQuery完全呈现? [英] How to detect if a page has fully rendered using jQuery?

查看:113
本文介绍了如何检测页面是否已使用jQuery完全呈现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用 $(文件).ready(functioon(){alert(Loaded。)}); 时会弹出警告框,显示已加载。 甚至之前页面已经完全加载(换句话说,正在加载仍然像图像一样)。

When using $(document).ready(functioon(){alert("Loaded.")}); it pops up the alert box that says "Loaded." even before the page has fully loaded (in other words there're loading still going on like images).

有什么想法吗?

推荐答案



$(window).on('load', function() {
    //everything is loaded
});


这篇关于如何检测页面是否已使用jQuery完全呈现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆