查找html节点的方法

document.firstChild
document.documentElement(兼容性较好)

查找body节点的方法

document.firstChild.lastChild
document.body(推荐)
原文地址:https://www.cnblogs.com/yangzailu/p/6089369.html