摘要: $.extend //扩展工具方法 $.fn.extend //扩展实例方法 $.extend = function(){ a:function(){ alert(1); }, b:function(){ alert(2); } } $.a(); $.b(); //即添加了一个工具,可以直接调用。 阅读全文
posted @ 2015-10-16 18:01 公公偏头痛 阅读(199) 评论(0) 推荐(0) 编辑