写法1:
$(document).ready(function(){
// jQuery methods go here...
});
写法2:
$().ready(function(){
// jQuery methods go here...
});
写法3:
$(function(){
// jQuery methods go here...
});
参考:http://www.w3school.com.cn/jquery/event_ready.asp;
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容