(function($){$.fn.extend({ myFunk: function() {// 此处必须返回jQuery对象 return $(); }, myPunk: function() {return this.addClass("punked") .bind("click", function(){ alert("You were punked!");}); }}); })(jQuery);使用方法如下:$(".select").myFunk(); $(".select").myPunk();希望本文所述对大家的jquery程序设计有所帮助。