Home  >  Article  >  Web Front-end  >  document.documentElement的一些使用技巧_javascript技巧

document.documentElement的一些使用技巧_javascript技巧

WBOY
WBOYOriginal
2016-05-16 17:36:131185browse
复制代码 代码如下:

--documentElement 属性可返回文档的根节点。





//body如果和div之间有空格,或者每个层之间有空格,会影响获取结果
第一层
第二层

第三层document.documentElement的一些使用技巧_javascript技巧


第四层



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn