document.documentElement vs document.all [英] document.documentElement vs document.all
本文介绍了document.documentElement vs document.all的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我这两个JavaScript命令之间的区别吗?
这两个主浏览器的兼容性是什么?我知道 documentElement
与大多数浏览器兼容。
Can anybody tell me the difference between these two JavaScript commands?
Also what is the compatibility of these two across major browsers? I know documentElement
is compatible with most browsers.
谢谢
推荐答案
document.all
是W3C标准的专有Microsoft扩展。
这是一个旧的功能,不应该再使用了!
document.all
is a proprietary Microsoft extension to the W3C-standard.
It's an old function and should not be used anymore!
rfc document.all与document.getElementById
这篇关于document.documentElement vs document.all的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文