JQuery的三种初始化方法

时间:2020-11-12 14:23:20   收藏:0   阅读:11

第一种:

1      $(document).ready(function(){
2          //do somethings
3      });

第二种:

1      $(function(){
2          //do somethings
3      });

第三种:

1      jQuery(function($){
2          //do somethings
3      });

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!