jquery.fn.extend与jquery.extend 有什么区别呢?
jquery.fn =jQuery.fn = jQuery.prototype ={}
所以
jquery.fn.extend 是给jquery对象提供方法。
后者是给jquery类本身提供方法。
jquery.fn =jQuery.fn = jQuery.prototype ={}
所以
后者是给jquery类本身提供方法。
转载于:https://www.cnblogs.com/xinchuang/archive/2012/09/11/2679663.html