jQuery 是一个快捷的,简洁的 javaScript 库,运用户能更利便地处置 HTML documents、events、实现动画下场,而且利便地为网站提供 AJAX 交互。
jQuery 尚有一个比力大的优势是,它的文档剖析很全,而且种种运用也说患上很详细,同时尚有良多成熟的插件可供抉择。 jQuery 可能运用户的 html 页坚持代码以及 html 内容分说,也便是说,不用再在 html 概况插入一堆js来调用命令了,惟独界说 id 即可。
更细日志:
该版本次若是修复了以前多少周内 jQuery 1.9 版本中发现的 bug。
jQuery 1.8 的正式版宣告了,让咱们约莫看一下 jQuery 1.8..3 主要的大修正搜罗那多少个方面。
jquery-1.8.3.min.js (缩短且最小化,适宜产物情景运用)
jquery-1.8.3.js (未缩短版本,用于调试)
JQUERY 1.8.3
Ajax
#12583: IE8 HTML bug (Chinese translation)
#12635: jquery 1.8.2 fails ajax calls in IE9 because it assumes cross domain when default port is in ajax url
Attributes
#10943: JQuery 1.7.1 does not properly set tabindex property on cloned element in IE7
Core
#12690: Minimum JS File Contains non-ASCII Character
Css
#10227: $('body').show() does'nt work if body style is set to display:none
#12537: element.css('filter') returns undefined in IE9
Deferred
#12665: Callbacks objects with "unique" flag will iterate over a function's methods when it is added a second time
Effects
#8685: Animations should keep track of animation state in order to properly address stacked animations
#12497: jQuery 1.8.1 transitions crashing android 2.3.4 browser
#12837: All animations break after zooming a lightbox on the iPad
Selector
#12643: Upgrade from 1.3.2 to 1.8.2 gives an Uncaught TypeError
#12648: Can not correctly detect focus for DIVs with contenteditable in Chrome and Safari
Support
#12357: jQuery 1.8.0 Not parseable by XUL Runner Applications
1.8.0
1. Sizzle 抉择器引擎重新架构
2. 重新刷新动画处置
3. 自动 CSS 前缀处置
当你在 .css() 以及 .animate() 中运用 CSS 属性时,jQuery 会自动凭证浏览器规范来配置一些前缀,好比 .css("user-select", "none") 在 Chrome/Safari 会酿成 "-webkit-user-select", 在 Firefox 酿成 "-moz-user-select", 在 IE10 则酿成 "-ms-user-select".
4. 更锐敏的 $(html, props)
5. 逾越 160 个 bug 处置并封锁
6. 代码愈加小
7. 模块化
同时 jQuery 1.8 还移除了一些 AP