$(Window).load()和$(Document).ready()函数之间的区别.之间的区别是什么?$(window).load(function() {})和$(document).ready(function() {})在jQuery中?
3 回答

一只甜甜圈
TA贡献1836条经验 获得超5个赞
$(document).ready(function() { // executes when HTML-Document is loaded and DOM is ready alert("document is ready");});$(window).load(function() { // executes when complete page is fully loaded, including all frames, objects and images alert("window is loaded");});

蓝山帝景
TA贡献1843条经验 获得超7个赞
$(document).ready(function() {
$(window).load()

温温酱
TA贡献1752条经验 获得超4个赞
$(window).load()
$( window ).load(function() { // Handler for .load() called.});
$( window ).on("load", function() { // Handler for .load() called.});
- 3 回答
- 0 关注
- 425 浏览
添加回答
举报
0/150
提交
取消