- 时间:2021-10-13 22:34 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:jQuery 1.5.1 发布,全面支持IE9 修复大量bug
我们非常感谢如下的贡献者(Contributors),他们为此次的发布提供了很多补丁(Patches):antonkovalyov, csnover, danheberden, davidmurdoch, dmethvin, gnarf37, jaubourg, jeresig, jitter, jrburke, lrbabe, mathiasbynens, rwldrn, SlexAxton, and voxwerk.
我们也特别感谢我们的BUG分类小组,在他们的帮助下一些主要的BUG在本次版本更新中被修正。
[h1]下载[/h1]
和通常一样,我们提供两份jQuery的拷贝。一个压缩版本一个非压缩版本(分别为了调试和阅读)。
[url=http://code.jquery.com/jquery-1.5.1.min.js]jQuery Minified[/url] (29kb [url=http://www.julienlecomte.net/blog/2007/08/13/]Gzipped[/url])
[url=http://code.jquery.com/jquery-1.5.1.js]jQuery Regular[/url] (212kb) [url=http://www.1sucai.cn/jiaoben/58.html]jquery下载地址[/url]
你可以在自己的网站内引用上述链接地址,从而获得更快的下载速度。
当然,你也可以引用微软或者Google的CDN加速服务器上的jQuery,他们分别是:
Microsoft CDN: [url=http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.min.js]http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.min.js[/url]
Google CDN: [url=https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js]https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js[/url]
1.6路线图讨论会议(Roadmap Meeting)
jQuery的核心开发团队正在讨论jQuery1.6中将要进行的改变。目前我们计划在四月下旬或者五月上旬发布jQuery1.6,我们会在3月7号中午讨论这些将要添加到新版本中的提议(美国东部时间)。
你可以通过[url=https://spreadsheets.google.com/viewform?formkey=dDcwNUlSaWltOWJrNE5tOUlIbkVJbGc6MQ#gid=0]这个表格[/url]在3月7号的会议之前提交你的建议。
jQuery 1.5.1更新日志
[img]http://files.jb51.net/upload/201102/20110226134837509.gif[/img]
API 文档:[url=http://api.jquery.com/category/version/1.5.1/]jQuery 1.5.1 API 文档[/url]
因为这是一次修正BUG的小版本更新,所以没有增加新的特性。唯一的变化如下:
jQuery 目前把 IE9作为一个重要的浏览器来支持。所有已知的BUG都已经得到修复或者已经提交给IE的开发团队以便在最终版本中得到解决。(All known bugs have been fixed and/or been reported to the IE team for resolution in the final release.)
三个新的参数被添加到[url=http://api.jquery.com/jQuery.ajax/]jQuery.ajax()[/url]:
isLocal: 允许当前的执行环境被识别为“local”(例如文件系统),jQuery默认情况下是不会识别这种环境。如下的协议被识别为本地环境:file, *-entension, widget. 如果需要修改isLocal,推荐使用$.ajaxSetup()方法来修改。
mimeType: 可以用来覆盖XHR的mime type.
xhrFields: 一个可以添加到原生XHR对象上的键值对(fieldName-fieldValue)。比如,你可以在跨域调用中设置withCredentials为true。
[b]修正的BUG列表[/b]
本次版本修正了如下BUG:
[list]
[*][url=http://bugs.jquery.com/ticket/2551]#2551[/url] Make sure .val() works after form.reset() in IE
[/*][*][url=http://bugs.jquery.com/ticket/4537]#4537[/url] Make sure .clone(true) correctly clones namespaced events
[/*][*][url=http://bugs.jquery.com/ticket/4966]#4966[/url] Don't add “px” to unit-less properties when animating them
[/*][*][url=http://bugs.jquery.com/ticket/6774]#6774[/url] Make sure we only access parentNode if it's available. Fixes an issue where after an option tag has been detached, an elem.parentNode error would be thrown.
[/*][*][url=http://bugs.jquery.com/ticket/6911]#6911[/url]Prevent action on disabled elements, both triggering and bound via .live()
[/*][*][url=http://bugs.jquery.com/ticket/7531]#7531[/url] Fix again for IE9RC. Enhances ajaxSetup so that it can take an optional target option, in which case target will be updated instead of ajaxSettings. That way, fields that shouldn't be deep extended can be listed and dealt with in one place. jQuery.ajax now makes use of ajaxSetup with target to create its internal settings object
[/*][*][url=http://bugs.jquery.com/ticket/7568]#7568[/url] Follow-up fix for [url=http://bugs.jquery.com/ticket/5862]#5862[/url]. Objects with a length property weren't serialized properly by jQuery.param
[/*][*][url=http://bugs.jquery.com/ticket/7653]#7653[/url] Changes regexp to detect local protocol so that it will accept any protocol finishing by -extension
[/*][*][url=http://bugs.jquery.com/ticket/7668]#7668[/url] Sizzle and jQuery QUnit tests are out of sync
[/*][*][url=http://bugs.jquery.com/ticket/7912]#7912[/url] This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by .css() if it isn't a number, number-alike or a value that needs a fallback to 0.
[/*][*][url=http://bugs.jquery.com/ticket/7922]#7922[/url] Fixed an issue where live(‘click') doesn't fire when live(‘submit') is bound first in IE
[/*][*][url=http://bugs.jquery.com/ticket/7945]#7945[/url] Make jQuery.param() serialize plain objects with a property named jquery correctly
[/*][*][url=http://bugs.jquery.com/ticket/8033]#8033[/url] jQuery 1.4.4+ fails to load on pages with old Prototype (<= 1.5) or Current Prototype + Scriptaculous in IE
[/*][*][url=http://bugs.jquery.com/ticket/8039]#8039[/url] Selectors with HTML5 input types not work in IE6/7
[/*][*][url=http://bugs.jquery.com/ticket/8052]#8052[/url] Update jQuery.support.noCloneEvent test to function properly in IE9
[/*][*][url=http://bugs.jquery.com/ticket/8095]#8095[/url] Properly handles the case where browser cache needs to be bypassed while server-side logic still delivers proper 304 responses. Unit test added
[/*][*][url=http://bugs.jquery.com/ticket/8098]#8098[/url] Use the fast document.head when available
[/*][*][url=http://bugs.jquery.com/ticket/8099]#8099[/url] Always restore to correct display value based on element's expected default display
[/*][*][url=http://bugs.jquery.com/ticket/8107]#8107[/url] Fix argument handling for $.ajax for multiple method signatues and add test case
[/*][*][url=http://bugs.jquery.com/ticket/8108]#8108[/url]Temporary fix for jQuery metadata being exposed on plain JS objects when serializing with JSON.stringify to avoid compatibility-breaking changes. A proper fix for this will be landed in 1.6
[/*][*][url=http://bugs.jquery.com/ticket/8115]#8115[/url] Renames all references to jXHR with jqXHR in the code (like was done in the doc)
[/*][*][url=http://bugs.jquery.com/ticket/8123]#8123[/url] The default for .clone() is to not clone any events
[/*][*][url=http://bugs.jquery.com/ticket/8125]#8125[/url] Status is set to 200 for requests with status 0 when location.protocol if “file:”. Added test/localfile.html to control it works
[/*][*][url=http://bugs.jquery.com/ticket/8129]#8129[/url] Fix cloning multiple selected options in IE8
[/*][*][url=http://bugs.jquery.com/ticket/8135]#8135[/url] Makes sure any exception thrown by Firefox when trying to access an XMLHttpRequest property when a network error occured is caught and notified as an error. Added test/networkerror.html to test the behavior
[/*][*][url=http://bugs.jquery.com/ticket/8138]#8138[/url] Access to document.location is made only once at load time and if it fails (throwing an exception in IE when document.domain is already set), we use the href of an A element instead
[/*][*][url=http://bugs.jquery.com/ticket/8145]#8145[/url] Added readyWait tests
[/*][*][url=http://bugs.jquery.com/ticket/8146]#8146[/url] introducing the xhrFields option with is a map of fieldName/fieldValue to set on the native xhr. Can be used to set withCredentials to true for cross-domain requests if needed
[/*][*][url=http://bugs.jquery.com/ticket/8152]#8152[/url] applying the same special cases for protocol “chrome-extension:” as were for “file:” (needs tests). Re-organizes and fixes the handling of special cases for HTTP status code in the xhr transport
[/*][*][url=http://bugs.jquery.com/ticket/8177]#8177[/url] XHR transport now considers 304 Not Modified responses as 200 OK if no conditional request header was provided (as per the XMLHttpRequest specification)
[/*][*][url=http://bugs.jquery.com/ticket/8193]#8193[/url] Fixes abort in prefilter. No global event will be fired in that case even if the global option is set to true. Unit test added
[/*][*][url=http://bugs.jquery.com/ticket/8198]#8198[/url] Remove unnecessary “script.type = text/javascript;”
[/*][*][url=http://bugs.jquery.com/ticket/8200]#8200[/url] Unexpose $.support._scriptEval as it's not needed. Use a private var instead
[/*][*][url=http://bugs.jquery.com/ticket/8209]#8209[/url] Make sure that mousing over Chrome “internal div” doesn't trigger a mouseleave
[/*][*][url=http://bugs.jquery.com/ticket/8219]#8219[/url] Introduces the mimeType option to override content-type header in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option)
[/*][*][url=http://bugs.jquery.com/ticket/8220]#8220[/url] Remove backslashes from tag name filter
[/*][*][url=http://bugs.jquery.com/ticket/8245]#8245[/url] Ajax now ensures header names are capitalized so that non-compliant xhr implementations don't override them
[/*][*][url=http://bugs.jquery.com/ticket/8250]#8250[/url] ajax does not work in opera 10 widgets
[/*][*][url=http://bugs.jquery.com/ticket/8277]#8277[/url] Sets data to undefined rather than null when it is not provided in ajax helpers so that it won't revent data set in ajaxSettings from being used.
[/*][*][url=http://bugs.jquery.com/ticket/8297]#8297[/url] Make sure response headers with empty values are handled properly and do not prevent proper parsing of the entire response headers string.
[/*][*][url=http://bugs.jquery.com/ticket/8353]#8353[/url] Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6.
[/*][*][url=http://bugs.jquery.com/ticket/8365]#8365[/url] Make sure that IE 9 still clones attributes.[/*][/list]