What is the difference between onLoad, onDomready, No wrap - in <head>, and No wrap - in <body>?

前端 未结 5 1702
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 05:46

I use JSFiddle for editing my code. However, in certain codes when I\'m running JavaScript or jQuery, it doesn\'t work unless I select \"No wrap -

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 06:34

    onload means all sources in the page are loaded ( include image css and js), domReady just means the dom tree is done.

提交回复
热议问题