jQuery由美国人John Resig创建,至今已吸引了来自世界各地的众多javascript高手加入其team,包括来自德国的Jörn Zaefferer,罗马尼亚的Stefan Petre等等。jQuery是继prototype之后又一个优秀的Javascrīpt框架。其宗旨是——WRITE LESS,DO MORE,写更少的代码,做更多的事情。
jquery提供了很多遍历的函数,如each(fn),但是使用这些函数的前提是:你使用的对象是Jquery对象。
jQuery 1.5.2 RC 1更新日志:
·#6158 Fixed replaceWith from throwing errors on non existant elements.
·#7340 We now use a single capturing han">dler to simulate bubbling focusin/focusout event on non-IE browsers. Allows native DOM methods to fire events other than the currently active one back into jQuery.
·#8353 Reverted. Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6. Fixes #8438 – an issue where the full functions stack wasn’t visible when debugging in Google Chrome.
·#8380 Make it so that $(‘:text’) matches <input> as ‘type=text’ is the implied default.
·#8421 Makes sure resolveWith can be called with only one parameter.
·#8423 Never set X-Requested-With header automagically for cross-domain requests. Fixes an issue where all cross-domain ajax requests are pre-flighted and require extra additional options.
·#8456 Fixed an issue where trigger(‘mouseover’) was no longer triggering mouseenter. We make sure parent is not null before crawling into its lap, so mouseenter is triggered on a mouseover event.
·#8509 Makes URL regexp less overzealous and ensures it recognizes URL schemes which do not contain a conformant hierarchical structure (as per section 2.1.2 of #http://www.ietf.org/rfc/rfc2718.txt). Also adds about: and adobe air’s app: and app-storage: to the list of local protocols and provides a failover in case document.location is illformed.
·#8536 Introduced submodules to the jQuery repository on GitHub.
·#8381 Fixed .is(“div”) to work on disconnected nodes in IE 9.
·#8316 Fixed .offset() setter on fixed elements in WebKit.
·#3333 Fixed incorrect .css(“marginRight”) in WebKit.
下载地址:http://code.jquery.com/jquery-1.5.2rc1.js