v1.7.2 Wed Mar 21 12:46:34 2012 -0700
322行是一个重点:
// Give the init function the jQuery prototype for later instantiation
jQuery.fn.init.prototype = jQuery.fn;(引用内容)
在已知jQuery.fn=jQuery.prototype的情况下,等同说,所有加在jQuery对象上的方法其实都加载在jQuery.fn.init之上。
另324行做出了一个规定:
jQuery.extend = jQuery.fn.extend = function() {(引用内容),下文中一会jQuery.extend,一会jQuery.fn.extend其实说的都是一回事。
好吧,我很喜欢这种实参的传递方式,随便多少个都通吃:
jQuery.extend({
noConflict: function( deep ) {(引用内容)
一会弄个例子玩玩。