Most of us think that document.ready and window.onload is one of the same thing the only difference is that window.onload is used in javascript while we use document.ready in Jquery. In window.onload ...
There are some minor difference between the two but it can effect with lots of confusion between to many of us. window.load - It is fired when everything on the page is loaded. By everything I mean ...
一旦加载了 DOM 和所有相关的资源,比如图像,就会调用 body.onload() 事件。基本上, onload() 将在页面已经完全加载了整个图像 ...