$.extend讲解 $.fn.extend()和$.extend()这二个方法是扩展jQuery,制作JQ插件的关键方法。看个实例 jQuery.fn.debug = function(msg) { this.each(function(){ if(window.console) { console.debug(message); } else { ......