久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

DOMContentLoaded 與 onload的區(qū)別

 木木的陽光 2011-03-25
1.DOMContentLoaded
DOMContentLoaded是
FF,Opera 9的特有的Event, 當所有DOM解析完以后會觸發(fā)這個事件,。
jquery的ready(示例:$("selector).ready(function(){})) ,MT的onDomReady
IE下是scrollleft事件可以時就表示DomcontentLoaded: var temp = document.createElement('div');temp.doScroll('left');
Fired on a Window object when a document's DOM content is finished loading, but unlike "load", does not wait until all images are loaded. Used for example by GreaseMonkey to sneak in to alter pages before they are displayed.
This event, as many others on this page, is dispatched to "trusted" targets only; for example, it is not dispatched to the content of the main browser object in Firefox, even if it comes from a chrome:/ URI.
2.Onload
 onload要等到所有頁面元素加載完成才會觸發(fā), 包括頁面上image,、flash、iframe等內(nèi)容都加載完畢才會執(zhí)行
參考:
1.https://developer.mozilla.org/en/Gecko-Specific_DOM_Events
 
本文來自CSDN博客,,轉(zhuǎn)載請標明出處:http://blog.csdn.net/beimuaihui/archive/2009/04/27/4130275.aspx

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點,。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,,謹防詐騙,。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報,。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多