jQuery1.5.2RC1更新内容(中文)

本文介绍了jQuery项目的几个关键更新,包括解决元素查找错误、优化事件处理机制、修复跨域请求问题,并增强了选择器功能和DOM操作。此外还讨论了如何改善非IE浏览器上的焦点事件处理及确保函数调用的正确性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

单位加班~干不动了,翻译点文档,翻译的不好,欢迎指教。

  • #6158 Fixed replaceWith from throwing errors on non existant elements.
    #6158 修正 replaceWith 没有找到元素时,抛出一个异常.
  • #7340 We now use a single capturing handler 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.
    #7340 我们现在使用一个单例模式的捕捉器来模拟focusin / focusout冒泡事件,在非IE浏览器。允许原生DOM方法触发事件,除了当前已进入jQuery的回退事件.
  • #8353 Reverted. Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6. #8353 Fixes #8438 – an issue where the full functions stack wasn’t visible when debugging in Google Chrome.
    Reverted.在resolveWith中添加一个catch块,以便在IE7和IE6下能够捕捉到finally。修正#8438这个问题--在Chrome调试时,full functions stack不可见。
  • #8380 Make it so that $(‘:text’) matches <input> as ‘type=text’ is the implied default.
    #8380 类似(‘:text’)的语法能够匹配<input>,例如”type=text“就是一个默认的实现。
  • #8421 Makes sure resolveWith can be called with only one parameter.
    #8421 确保resolveWith只有一个参数。
  • #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.
    当跨域请求时,从不自动设置头部X-Requested-With。修正一个问题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.
    在jQuery GitHub的知识库中引进子模块
  • #8381 Fixed .is(“div”) to work on disconnected nodes in IE 9.
    修正 .is("div")可以工作在IE9分离的节点上.
  • #8316 Fixed .offset() setter on fixed elements in WebKit.
    #8316 修正 .offset() 可以设置在fixed定位的元素上。
  • #3333 Fixed incorrect .css(“marginRight”) in WebKit.
    #3333 修正 .css(“marginRight”)的错误
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值