JQuery的三种初始化方法

第一种:

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

第二种:

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

第三种:

1      jQuery(function($){
2          //do somethings
3      });
原文地址:https://www.cnblogs.com/xjs1874704478/p/13912772.html