jquery ready load

jq load Three Kind of Writing

$ (Document) .ready ( function () {
     // ... Code ... 
})
 // Document READY abbreviated 
$ ( function () {
     // ... Code ... 
}) 
$ (Document) .load ( function () {
     // ... Code ... 
})
View Code

ready to execute, execute after load.

(1 ) parsing the HTML structure. 
( 2 ) loading external script and style sheet files. 
( 3 ) parse and execute script code. 
( 4) HTML DOM structure model. // READY 
(5 ) to load pictures and other external files. 
( 6) page is loaded. // the Load
View Code

 

Guess you like

Origin www.cnblogs.com/justSmile2/p/11259189.html