JQuery page execution events after loading is complete

One:

$(document).ready(function(){
  //code
})

 

two:

jQuery(document).ready(function(){
  //code
})

 

three:

window.onload=function(){
  //code
}

 

four:

Jquery code into the back of the body, it will also achieve the same effect.

Guess you like

Origin www.cnblogs.com/ryanzheng/p/10967700.html