Is this jQuery code (function(jQuery){ })(jQuery); equivalent to $(document).ready(function () { }); If yes, what are the differences between the two? If not, what does the first do?
(function() {})() and its jQuery-specific cousin (function($) {})(jQuery) pop up all the time in 开发者_如何学CJavascript code.