【IT168 技术】Jquery是继prototype之后又一个优秀的Javascrīpt框架。它是轻量级的js库(压缩后只有21k) ,它兼容CSS3,还兼容各种浏览器(IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)。jQuery使用户能更方便地处理HTML documents、events、实现动画效果,并且方便地为网站提供AJAX交互。jQuery还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有许多成熟的插件可供选择。jQuery能够使用户的html页保持代码和html内容分离,也就是说,不用再在html里面插入一堆js来调用命令了,只需定义id即可。
jQuery 1.7.1 正式版发布了,新增功能如下:
Ajax
#10723: jqXHR.always()返回的不再是jqXHR对象。
Attributes
#10724: $(document).text()返回空字符串。
#10773: removeAttr is fragile for edge cases
Build
#10630: Fix focus-related test failures to resolve Swarm failures
Core
#10616: Type coersion not done for -1 in .eq
#10646: jQuery.error抛出错误对象的实例。
#10682: Creating DOM elements with $(‘ ‘) leaks memory and skips the fragment cache
#10687: jQuery calls the AMD define() global function too early
#10690: isNumeric
Css
#10733:在CSS模块中移除了jQuery.each的使用
Data
#10675: 不再使用jQuery.expando,使用内部的快捷键。
Effects
#10669: .animate() no longer animates percentage(%) width
#10750: A “null” in the data object can cause an error in stop
Event
#10676: wheelDelta not added to mousewheel event anymore
#10701: Problems with submit forms using submit function
#10704: special.handle method should fire under origType name
#10705: off bug event name parser
#10712: Triggering blur with live bind broken
#10717: A triggered load bubbles up to window
#10791: Delegated Events fail on SVG elements
#10794: .triggerHandler should not .preventDefault()
#10798: live(“submit”) and .submit() would cause unobtrusive ajax live to fire twice
#10844: .delegate() on submit doesn’t work when form contains input with name “id”
Manipulation
#10177: index of callback function in .wrap is always 0
#10667: HTML5 Support in .wrapAll() does add a “:” to element
#10670: rnoshimcache probably not constructed correctly
#10812: passing empty object to .before() or .after() throws exception in IE7
Misc
#10691: remove all occurrences of the “equals” and “same” function in the unit tests`
Support
#10629: IE is much too sensitive concerning the fake body. Explore cleaning up support.js to avoid any future crashes.
#10807: Non-ascii apostrophe in comment
下载地址:http://code.jquery.com/jquery-1.7.1.min.js
http://code.jquery.com/jquery-1.7.1.js