以下代码效果是一样的
(function($){
// 1
$.fn.extend({
theme: function(){
//code
}
});
// 2
$.fn.theme = function(){
//code
}
})(jQuery);