jQuery 1.11.0 RC1 和 2.1.0 RC1 发布
jQuery 是一种快速、简洁的 JavaScript 库,可以简化 HTML 文档遍历、事件处理、动画和 Ajax 交互,能快速进行 web 开发。一个 jQuery 插件基本上是一种新方法,用来扩展 jQuery 原型对象。当扩展原型对象时,所有的 jQuery 对象就会启用并且能够添加和继承其他的任何方法。
jQuery 今天发布两个新版本,分别是 1.11.0 RC1 和 2.1.0 RC1 ,下载地址:
改进内容分别如下:
Changelog
Common to both jQuery 1.11 RC1 and jQuery 2.1 RC1
Ajax
Attributes
Build
#14118: Use bower to include Sizzle and QUnit (remove submodules)
#14504: Build: Upgrade to grunt-contrib-jshint 0.7.1 and squash subtasks
Core
#14549: npm jQuery does not expose the jQuery function, but instead a wierd factory
#14645: Remove global exposure for CommonJS environments with a document
Css
Data
#14101: Version 1.10 .data() differs from 1.8 when getting data from non-existent object
#14459: data-* attribute parsing bypasses jQuery.parseJSON (inconsistent with 1.x)
Effects
Event
#13993: .triggerHandler doesn’t return value from handler for DOM0 events
#14282: Don’t call getPreventDefault() if there is a defaultPrevented property
Misc
Selector
#14142: Wrong number of elements returned in XML document with numeric IDs in Safari
#14351: Exception thrown when running `find` in a non-attached DOM node
#14381: .add() throws “no such interface” in IE when adding nodes from another window
#14535: Selection fails in IE11 when the last context is a no-longer-present iframe document
Support
#10814: make support as lazy as possible with closure in mind
#14401: Error when loading a page with application/xhtml+xml
#14496: jQuery 2.1.0-beta1 fails to initialize in a XHTML page