jQuery扩展写法

(function($) {
// 在这个函数体里,$可作为jQuery的引用
// 很方便,对吧?
})(jQuery);
原文地址:https://www.cnblogs.com/fx2008/p/2298688.html