JQuery的三种初始化方法

第一种:

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

第二种:

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

第三种:

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