DOM节点

常见节点类型

相关方法

childNodes 返回节点的子节点列表

parentNode 获取父节点

previousSibling/nextSibling 上/下一个兄弟节点

firstChild/lastChild 第一个/最后一个节点

appendChild,removeChild,replaceChild,insertBefore 追加/删除/替换/在...之前追加一个节点

核心DOM API的一个部分层级

 

接口继承

原文地址:https://www.cnblogs.com/goOtter/p/8979108.html