如何理解 JavaScript 里的 window.onload?
的有关信息介绍如下:
window对象的load事件一个listener。该事件会在所有内容完全加载完成后触发。
The load event fires at the end of the document loading process. At this point, all of the objects in the document are in the DOM, and all the images, scripts, links and sub-frames have finished loading.
window对象的load事件之所以有用,是因为浏览器关于资源加载和脚本执行顺序的一个(必须保持后向兼容的)大坑。
……所以你期待的答案是什么样的?
GlobalEventHandlers.onload



