![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
浏览器
文章平均质量分 78
nono4909
这个作者很懒,什么都没留下…
展开
-
js判断浏览器
function getOs() { var OsObject = ""; if(navigator.userAgent.indexOf("MSIE")>0) { return "MSIE"; } if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ ret转载 2013-08-01 14:22:35 · 675 阅读 · 0 评论 -
FF下新增event对象的srcElement、fromElement、toElement三个属性
网摘: ie下可以直接使用event对象的这三个属性 现在我们需要为FF新增这三个属性: if(window.addEventListener) { FixPrototypeForGecko(); } function FixPrototypeForGecko() { HTMLElement.prototype.__defineGetter__("转载 2013-08-01 14:19:28 · 656 阅读 · 2 评论