当前位置: 代码迷 >> Web前端 >> jquery源码-代码构造
  详细解决方案

jquery源码-代码构造

热度:305   发布时间:2013-02-19 11:11:41.0
jquery源码-代码结构

/*!
 * jQuery JavaScript Library v1.8.2
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
 */
(function( window, undefined ) {

 //15~94 初始化变量、快捷方式定义

 //95~904 utils部分,定义了一些工具函数

 //905~1099 utils部分中的 callback函数
 
 //1100~1240 utills部分中的 Deferred队列方法
 
 //1241~1507 utils部分support对象集合,为一组浏览器差异性集合

 //1508~1992 utils部分Data操作函数

 //1993~2630(2207) Attributes操作函数

 //2631~3667 Jquery Event部分

 //3668~5648 Sizzle元素查找和过滤

 //5650~6461 DOM操作 

 //6462~7263 CSS操作

 //7264~8535 AJAX对象

 //8536~9194 FX动画

 //9195~9420 坐标位置

 // Expose jQuery to the global object
 window.jQuery = window.$ = jQuery;

 // Expose jQuery as an AMD module, but only for AMD loaders that
 // understand the issues with loading multiple versions of jQuery
 // in a page that all might call define(). The loader will indicate
 // they have special allowances for multiple jQuery versions by
 // specifying define.amd.jQuery = true. Register as a named module,
 // since jQuery can be concatenated with other files that may use define,
 // but not use a proper concatenation script that understands anonymous
 // AMD modules. A named AMD is safest and most robust way to register.
 // Lowercase jquery is used because AMD module names are derived from
 // file names, and jQuery is normally delivered in a lowercase file name.
 // Do this after creating the global so that if an AMD module wants to call
 // noConflict to hide this version of jQuery, it will work.
 if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
	define( "jquery", [], function () { return jQuery; } );
 }
})( window );

  相关解决方案