Skip to main content

文本节点

文本节点在树上表示原始文本内容(类似于 Web 上的 Text 节点)。它们无法通过 refs 直接访问,但可以通过元素引用上的 childNodes 等方法访问。

¥Text nodes represent raw text content on the tree (similar to Text nodes on Web). They are not directly accessible via refs, but can be accessed using methods like childNodes on element refs.


参考

¥Reference

Web 兼容 API

¥Web-compatible API

来自 CharacterData

¥From CharacterData:

来自 Node

¥From Node: