jquery-1.8.2.js
jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
// Need init if jQuery is called (just allow error to be thrown if not included)
return new jQuery.fn.init( selector, context );
}
jQuery.fn = jQuery.prototype = {
init: function( selector, context, rootjQuery ) { }
};
jQuery.fn.init.prototype = jQuery.fn;
总结:
jQuery.prototype = jQuery.fn = jQuery.fn.init.prototype;