摘要: firefox 的 event.currentTarget 和 ie 的 document.activeElement 这两个完全含义不一致的对象却被捆绑在一起做成了浏览器兼容代码。 大家在google搜索的时候 都会发现 document.activeElement || event.currentTarget 的用法。其实这样的用法是错误的,因为这两个属性的意义都不一样。event.currentTargetIdentifies the current target for the event, as the event traverses the DOM.识别当前事件触发的domdocu 阅读全文
posted @ 2013-06-08 14:02 无恨星晨 阅读(877) 评论(0) 推荐(0)