jquery Document loading notation:
$ (function// personal most commonly used by $ (document). Ready (function() { // call the Ready method under the Document object to pass in a function. $ (window). Load (function() {}); // call the Load method under the Window object to pass in a function. (function() {}) (jquery)//() () means immediate execution and incoming jquery = $ so the $ can be replaced with jquery before
Attention:
The ready for jquery is just the structure of the DOM loaded, and it is considered to be loading complete. Regardless of whether the content is loaded or not
JS Window.onload refers to the creation of the DOM and the loading of resources, such as Flash, the picture is fully loaded before the onload execution. (The disadvantage is that when a picture is large, it will not prevent the normal execution of other JS)
JS notation:
function () {};d ocument.ready=function() {};
Picture loading complete:
No plagiarism: http://www.cnblogs.com/ymy124/p/4538695.html
jquery document loading several writing, picture loading notation