/*
* 这个文件支持VS的智能感知。
* 为了支持智能感知,些js文件使用了非规范的javascript语法,所以请只在开发环境中使用。
* 在发布程序时,请使用jquery-1.3.2.min.js
*
* Comment version: 1.3.2b
*/
/*
* jQuery JavaScript 库 v1.3.2
* http://jquery.com/
*
* 2009 John Resig 版权所有
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/
(function(){
var
// Will speed up references to window, and allows munging its name.
window = this,
// Will speed up references to undefined, and allows munging its name.
undefined,
// Map over jQuery in case of overwrite
_jQuery = window.jQuery,
// Map over the $ in case of overwrite
_$ = window.$,
jQuery = window.jQuery = window.$ = function(selector, context) {
/// <summary>
/// 1: $(expression, context) - 这个函数接收一个包含 CSS 选择器的字符串,然后用这个字符串去匹配一组元素。
/// 2: $(html) - 根据提供的原始 HTML 标记字符串,动态创建由 jQuery 对象包装的 DOM 元素。
/// 3: $(elements) - 将一个或多个DOM元素转化为jQuery对象。
/// 4: $(callback) - $(document).ready()的简写。
/// </summary>
/// <param name="selector" type="String">
/// 1: expression - 用来查找的表达式。
/// 2: html -用于动态创建DOM元素的HTML标记字符串
/// 3: elements - 用于封装成jQuery对象的DOM元素
/// 4: callback - 当DOM加载完成后,执行其中的函数。
/// </param>
/// <param name="context" type="jQuery">
/// 1: context - (可选) 作为待查找的 DOM 元素集、文档或 jQuery 对象。
/// </param>
/// <field name="selector" Type="Object">
/// The DOM node context originally passed to jQuery() (if none was passed then context will be equal to the document).
/// </field>
/// <field name="context" Type="String">
/// A selector representing selector originally passed to jQuery().
/// </field>
/// <returns type="jQuery" />
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context );
},
// A simple way to check for HTML strings or ID strings
// (both of which we optimize for)
quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
// Is it a simple selector
isSimple = /^.[^:#\[\.,]*$/;
jQuery.fn = jQuery.prototype = {
init: function( selector, context ) {
/// <summary>
/// 1: $(expression, context) - 这个函数接收一个包含 CSS 选择器的字符串,然后用这个字符串去匹配一组元素。
/// 2: $(html) - 根据提供的原始 HTML 标记字符串,动态创建由 jQuery 对象包装的 DOM 元素。
/// 3: $(elements) - 将一个或多个DOM元素转化为jQuery对象。
/// 4: $(callback) - $(document).ready()的简写。
/// </summary>
/// <param name="selector" type="String">
/// 1: expression - 用来查找的表达式。
/// 2: html -用于动态创建DOM元素的HTML标记字符串
/// 3: elements - 用于封装成jQuery对象的DOM元素
/// 4: callback - 当DOM加载完成后,执行其中的函数。
/// </param>
/// <param name="context" type="jQuery">
/// 1: context - (可选) 作为待查找的 DOM 元素集、文档或 jQuery 对象。
/// </param>
/// <returns type="jQuery" />
// Make sure that a selection was provided
selector = selector || document;
// Handle $(DOMElement)
if ( selector.nodeType ) {
this[0] = selector;
this.length = 1;
this.context = selector;
return this;
}
// Handle HTML strings
if (typeof selector === "string") {
// Are we dealing with HTML string or an ID?
var match = quickExpr.exec(selector);
// Verify a match, and that no context was specified for #id
if (match && (match[1] || !context)) {
// HANDLE: $(html) -> $(array)
if (match[1])
selector = jQuery.clean([match[1]], context);
// HANDLE: $("#id")
else {
var elem = document.getElementById(match[3]);
// Handle the case where IE and Opera return items
// by name instead of ID
if (elem && elem.id != match[3])
return jQuery().find(selector);
// Otherwise, we inject the element directly into the jQuery object
var ret = jQuery(elem || []);
ret.context = document;
ret.selector = selector;
return ret;
}
// HANDLE: $(expr, [context])
// (which is just equivalent to: $(content).find(expr)
} else
return jQuery(context).find(selector);
// HANDLE: $(function)
// Shortcut for document ready
} else if ( jQuery.isFunction( selector ) )
return jQuery( document ).ready( selector );
// Make sure that old selector state is passed along
if ( selector.selector && selector.context ) {
this.selector = selector.selector;
this.context = selector.context;
}
return this.setArray(jQuery.isArray( selector ) ?
selector :
jQuery.makeArray(selector));
},
// Start with an empty selector
selector: "",
// The current version of jQuery being used
jquery: "1.3.2",
// The number of elements contained in the matched element set
size: function() {
/// <summary>
/// 适合当前条件的对象的数量。
/// jQuery核心的一部分
/// </summary>
/// <returns type="Number" />
return this.length;
},
// Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array
get: function( num ) {
/// <summary>
/// 访问单独一个符合条件的元素,参数num用来访问多个条件元素
/// 的第N个。
/// jQuery核心的一部分。
/// </summary>
/// <returns type="Element" />
/// <param name="num" type="Number">
/// Access the element in the Nth position.
/// </param>
return num == undefined ?
// Return a 'clean' array
Array.prototype.slice.call( this ) :
// Return just the object
this[ num ];
},
// Take an array of elements and push it onto the stack
// (returning the new matched element set)
pushStack: function( elems, name, selector ) {
/// <summary>
/// 把jQuery对象设置为一串元素,用于访问
/// 堆栈。
/// jQuery核心的一部分。
/// </summary>
/// <returns type="jQuery" />
/// <param name="elems" type="Elements">
/// An array of elements
/// </param>
// Build a new jQuery matched element set
var ret = jQuery( elems );
// Add the old object onto the stack (as a reference)
ret.prevObject = this;
ret.context = this.context;
if ( name === "f

光阴使者
- 粉丝: 6
- 资源: 70
最新资源
- 基于FPGA设计的复杂数字时钟:采用VHDL语言实现,拥有闹钟模块、秒分模块及较时模块等多元化功能,基于FPGA的数字时钟设计:VHDL语言实现,包含闹钟模块与时间校准功能,基于FPGA数字时钟VHD
- 深入解析is620系列伺服驱动器代码与原理:is620n、is620p及is620详解,is620系列伺服驱动器代码与原理详解:探索is620n、is620p及其核心功能,is620n,is620p
- 基于遗传算法的机器人最短路径规划matlab程序:含障碍物条件及自定义坐标设置,基于遗传算法的机器人最短路径规划matlab程序(含障碍物处理与坐标调整说明),基于遗传算法的机器人路径规划matlab
- 三菱Q系列PLC之全功能程序架构:从基础定位到复杂插补,附电路图与触摸屏操作指南,三菱Q系列PLC 11轴标准程序:涵盖轴回零、定位及五组直线插补,清晰易懂,附触摸屏与电路图,助力项目上手无难题,三菱
- 三菱PLC步进伺服控制程序详解:威纶触摸屏编写,适合新手学习,成熟可靠,高借鉴价值,附详细注释,三菱PLC步进伺服控制程序详解:威纶触摸屏编写,适合新手学习,成熟可靠,高借鉴价值,附详细注释,三菱PL
- 晶粒建模与生长的新探索:基于Voronoi多边形相场模拟的晶粒生长模型及文献思考,晶粒建模与生长的新探索:基于Voronoi相场模拟的晶粒生长模型及文献思考,晶粒建模-晶粒生长模型-全新 相场模拟 1
- 全C源程序驱动的太阳能并网逆变器:3kw与5kw单相技术方案及板图原理清单,可直接打板验证的量产化光伏逆变器制作指南,全C源程序驱动的3kw/5kw单相太阳能并网逆变器:板图原理图清单与超优生产技术方
- Oracle高效能SQL设计
- 西门子SMART模拟量滤波消抖子程序:滑动平均滤波法及其应用优势与局限,西门子SMART模拟量滤波消抖子程序:滑动平均滤波法实现及库函数应用,西门子SMART,模拟量滤波,消抖子程序 可做库,多次调用
- FFT快速傅里叶变换C语言实现:振动信号时频转换与嵌入式应用 注:本程序支持多种FFT点数转换,运行稳定,与Matlab结果一致,附电子资料清单 ,FFT快速傅里叶变换C语言实现:振动信号时频转换与
- 电气热综合能源系统优化调度模型详解:Matlab Gurobi求解方法,附数据来源、模型说明及参考文献,电气热综合能源系统优化调度模型建立:Matlab Gurobi求解方法及其文献参考,关键词:综合
- 基于MATLAB的联合调度微电网运行优化模型:考虑储能、分时电价与电热协调策略降低运营成本,基于电热联合调度的微电网运行优化模型:MATLAB仿真实现与Cplex求解,MATLAB代码:含电热联合系统
- 数显步进电机驱动器方案详解:掌握核心技术,推动产品升级,助你快速迈向行业领先,掌握核心技术,快速升级产品:步进电机驱动器与数显步进驱动器方案详解,步进电机驱动器方案 ,数显步进驱动器方案,快速掌握核心
- 基于S7-200 PLC与组态王技术的港口码头装卸料小车智能控制系统设计,基于S7-200 PLC与组态王技术的港口码头装卸料小车智能控制系统设计,基于S7-200 PLC和组态王港口码头装卸料小车控
- S7-200 PLC与组态王联合设计的室内游泳池水处理PLC控制系统:梯形图程序详解、接线图与原理图、IO分配及组态画面展示,基于S7-200 PLC与组态王的室内游泳池水处理PLC控制系统综合设计:
- 四旋翼无人机飞行姿态控制系统全流程设计与实现-含软硬件及数学建模(含详细实现代码及解释)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


