高级前端
dom
【Q548】DOM 中 Element 与 Node 有何区别

DOM 中 Element 与 Node 有何区别

Issue 欢迎在 Gtihub Issue 中回答此问题: Issue 562 (opens in a new tab)

Author 回答者: Asarua (opens in a new tab)

Element是dom元素,Node是节点,包含Element,还有其他节点

Author 回答者: shfshanyue (opens in a new tab)

TODO

Author 回答者: haotie1990 (opens in a new tab)

Element是dom元素,Node是节点,包含Element,还有其他节点

Element 继承于 Node,具有Node的方法,同时又拓展了很多自己的特有方法

Author 回答者: haotie1990 (opens in a new tab)

浅析Node与Element的区别 (opens in a new tab)