jQuery1.3.2 Ô´Âëѧϰ
±¾Ô´ÂëʹÓõ±Ç°µÄ jQuery 1.3.2 °æ±¾£¬ÏÂÔØʱ¼ä 2009-4-25£¬ÏÂÔصØÖ·£ºµã´ËÏÂÔØ
Ò»¸öº¯Êý
1 /*!
2 * jQuery JavaScript Library v1.3.2
3 *
4 *
5 * Copyright (c) 2009 John Resig
6 * Dual licensed under the MIT and GPL licenses.
7 *
8 *
9 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
10 * Revision: 6246
11 */
12 (function(){
4376 })();
Ê¡ÂÔµôÖмäµÄÄÚÈÝ£¬¿ÉÒÔ¿´µ½´ÓµÚ 12 Ðе½ 4376 ÐУ¬jQuery ´úÂë¿ÉÒÔ¼ò»¯ÎªÈçÉϵĴúÂë¡£
Ò²¾ÍÊǶ¨ÒåÁËÒ»¸öÄäÃûµÄº¯Êý£¬È»ºóÖ´ÐÐÕâ¸öº¯Êý¡£
ÔÚÕâ¸öÄäÃûº¯ÊýÖÐÍê³ÉÆäËûµÄ¶¨ÒåºÍ²Ù×÷£¬ÕâÑù¿ÉÒÔ±ÜÃâÓëϵͳµÄÆäËûº¯ÊýͬÃûÔì³ÉµÄÃüÃû³åÍ»ÎÊÌâ¡£Ï൱ÓÚÒ»¸ö˽ÓеÄ×÷ÓÃÓò¡£
$ ÊÇʲô£¿jQuery ÓÖÊÇʲô£¿
13 var
14 // Will speed up references to window, and allows munging its name.
15 window = this,
16 // Will speed up references to undefined, and allows munging its
17 name.
18 undefined,
19 // Map over jQuery in case of overwrite
20 _jQuery = window.jQuery,
21 // Map over the $ in case of overwrite
22 _$ = window.$,
23
24 jQuery = window.jQuery = window.$ = function( selector, context ) {
25 // The jQuery object is actually just the init constructor 'enhanced'
26 return new jQuery.fn.init( selector, context );
27 },
ͨ¹ýÕâ¶Î´úÂ룬¿ÉÒÔ¿´µ½ $£¬jQuery ÊÇ window ¶ÔÏóÉÏ×Ô¶¨ÒåµÄÒ»¸ö³ÉÔ±£¬Õâ¸ö³ÉÔ±Ö¸ÏòÁËÒ»¸öÄäÃûº¯Êý£¬ÒÔºó¿ÉÒÔͨ¹ýwindow ¶ÔÏóµÄ $ »òÕß jQuery À´Ê¹ÓÃÕâ¸öº¯Êý¡£
Õâ¸öº¯Êý·µ»ØÁËÒ»¸öͨ¹ý jQuery.fn.init º¯Êý¶¨ÒåµÄ¶ÔÏó¡£ËµÃ÷ͨ¹ý jQuery µÃµ½µÄ¶ÔÏóÆäʵÊÇÒ»¸ö jQuery.fn.init º¯Êý´´½¨µÄ¶ÔÏó£¬ÄÇô£¬ÒÔºóͨ¹ý jQuery.fn.init µÄÔÐͶ¨ÒåµÄº¯Êý»òÕßÊôÐÔ¶¼¿ÉÒÔ±»Í¨¹ý jQuery ´´½¨µÄ¶ÔÏóÀ´Ê¹Óá£
jQuery.fn ÊÇʲô£¿
35 jQuery.fn = jQuery.prototype = {
538 };
´Ó 35 Ðе½ 538 ÐУ¬Îª jQuery.fn µÄ¶¨Ò壬jQuery.fn ¾ÍÊÇ jQuery ËùÖ¸ÏòµÄº¯ÊýµÄÔÐͶÔÏó¡£ËùÒÔÔÚ jQuery µÄÔÐÍÉ϶¨ÒåµÄº¯Êý¾Í¿ÉÒÔͨ¹ý jQuery.fn À´Ê¹ÓÃÁË¡£
¶øÉÏ±ßµÄ jQuery.fn.init ¾ÍÊÇ jQuery º¯ÊýÔÐͶÔÏóÉϵÄÒ»¸öº¯Êý¡£
¡¡