diff --git a/web/static/script/3.text b/web/static/script/3.text deleted file mode 100644 index d28d40b..0000000 --- a/web/static/script/3.text +++ /dev/null @@ -1 +0,0 @@ -add \ No newline at end of file diff --git a/web/static/script/jquery-1.7.2.js b/web/static/script/jquery-1.7.2.js index 90768f2..dbb890e 100644 --- a/web/static/script/jquery-1.7.2.js +++ b/web/static/script/jquery-1.7.2.js @@ -6852,6 +6852,7 @@ get: function( elem, computed, extra ) { // 如果 computed 参数为 true if ( computed ) { + // 如果元素的偏移宽度不为 0 if ( elem.offsetWidth!== 0 ) { // 调用 getWidthOrHeight 函数获取元素的宽度或高度 return getWidthOrHeight( elem, name, extra ); @@ -6922,12206 +6923,2771 @@ filter.replace( ralpha, opacity ) : // 否则将 filter 与 opacity 拼接 filter + " " + opacity; - - ; +}; +}; // 当 DOM 加载完成后执行以下函数 - jQuery(function() { - // 这个钩子在 DOM 加载完成后才能添加,因为对其的支持测试在 DOM 加载完成后才运行 - if (!jQuery.support.reliableMarginRight ) { - // 为 jQuery 的 cssHooks 对象添加 marginRight 属性 - jQuery.cssHooks.marginRight = { - // 定义获取元素 marginRight 属性的函数 - get: function( elem, computed ) { - // WebKit Bug 13343:getComputedStyle 会返回错误的 margin-right 值,通过将元素临时设置为 inline-block 来解决 - return jQuery.swap( elem, { "display": "inline-block" }, function() { - // 如果 computed 为 true,使用 curCSS 获取元素的 margin-right 属性 - if ( computed ) { - return curCSS( elem, "margin-right" ); - } else { - // 否则直接返回元素的 marginRight 样式属性 - return elem.style.marginRight; - } - }); - } - }; - } - }); - -// 如果 jQuery.expr 和 jQuery.expr.filters 存在 - if ( jQuery.expr && jQuery.expr.filters ) { - // 为 jQuery.expr.filters 添加 hidden 过滤器 - jQuery.expr.filters.hidden = function( elem ) { - var width = elem.offsetWidth, - height = elem.offsetHeight; - // 判断元素是否隐藏,根据元素的宽高是否都为 0 或者显示样式为 none 来判断 - return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none"); - }; - // 为 jQuery.expr.filters 添加 visible 过滤器,它是 hidden 的反义 - jQuery.expr.filters.visible = function( elem ) { - return!jQuery.expr.filters.hidden( elem ); - }; - } - -// 这些钩子被用于 animate 来扩展属性 - jQuery.each({ - margin: "", - padding: "", - border: "Width" - }, function( prefix, suffix ) { - // 为 jQuery 的 cssHooks 对象添加属性,属性名为 prefix 与 suffix 组合 - jQuery.cssHooks[ prefix + suffix ] = { - // 定义 expand 函数 - expand: function( value ) { - var i, - // 如果 value 不是字符串,假设它是一个单独的数字,否则将其分割为数组 - parts = typeof value === "string"? value.split(" ") : [ value ], - expanded = {}; - // 遍历 4 次,将值分配给不同的边 - for ( i = 0; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - // 返回扩展后的对象 - return expanded; +jQuery(function() { + // 这个钩子在 DOM 加载完成后才能添加,因为对其的支持测试在 DOM 加载完成后才运行 + if (!jQuery.support.reliableMarginRight ) { + // 为 jQuery 的 cssHooks 对象添加 marginRight 属性 + jQuery.cssHooks.marginRight = { + // 定义获取元素 marginRight 属性的函数 + get: function( elem, computed ) { + // WebKit Bug 13343:getComputedStyle 会返回错误的 margin-right 值,通过将元素临时设置为 inline-block 来解决 + return jQuery.swap( elem, { "display": "inline-block" }, function() { + // 如果 computed 为 true,使用 curCSS 获取元素的 margin-right 属性 + if ( computed ) { + return curCSS( elem, "margin-right" ); + } else { + // 否则直接返回元素的 marginRight 样式属性 + return elem.style.marginRight; + } + }); } }; - }); - - - -// 定义一系列的正则表达式用于解析和处理URL、请求头等信息 - var r20 = /%20/g, // 匹配URL中的空格字符(%20) - rbracket = /\[\]$/, // 匹配以方括号结尾的字符串 - rCRLF = /\r?\n/g, // 匹配回车符或换行符 - rhash = /#.*$/, // 匹配井号(#)及其后面的所有字符 - rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // 匹配请求头,IE会在行尾留下\r字符 - rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, // 匹配输入字段的类型 - // 匹配本地协议 - rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, // 匹配无内容请求的HTTP方法 - rprotocol = /^\/\//, // 匹配协议前的双斜杠 - rquery = /\?/, // 匹配查询字符串前的问号 - rscript = /)<[^<]*)*<\/script>/gi, // 匹配