jQuery(function(){ })与(function(){ })(jQuery)的差别

jQuery(function(){ })与(function(){ })(jQuery)的区别简单理解一下:jQuery(function(){ })用于存放操作

jQuery(function(){ })与(function(){ })(jQuery)的区别
简单理解一下:
jQuery(function(){ });
      用于存放操作DOM对象的代码,执行其中代码时DOM对象已存在。

(function(){ })(jQuery):
      用于存放开发插件的代码,执行其中代码时DOM不一定存在。