欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

[JQuery]Quicker Than window.onload

程序员文章站 2022-07-16 13:53:54
...
js 代码
  1. $(document).ready(function(){   
  2.   // Your code here...   
  3. });  

Aboves launches your javascript as soon as the Document Object Model is ready… which happens before the page has finished loading.

相关标签: jQuery JavaScript