a simple question on jquery closure
问题 what does this mean? (function($){ })(jQuery); to make the question clearer, what does wrapping a function in parenthesis mean in JS (sorry, I'm a bit confused on the concept of closures). What about the $ parameter? and the "jQuery" in the end parenthesis? Can I do the same with mootools and combine them in 1 JS file? (function($){})(jQuery); (function($){})(mooTools); I have only worked with jquery and am planning to work with Mootools 回答1: Wrapping a function between parenthesis ensures