JQuery的三种初始化方法

第一种:

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

第二种:

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

第三种:

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

 

posted @ 2020-11-02 09:06  微微亮  阅读(1243)  评论(0编辑  收藏  举报