使用: ParentNode.firstElementChild; document.firstElementChild.nodeName // "HTML" 注意: 1. 只能获取元素子节点; 2. 如果没有任何元素字节点, 则返回null 相关文章: