文本节点
文本节点在树上表示原始文本内容(类似于 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:
- 
属性
¥Properties
 - 
方法
¥Methods
 
来自 Node:
¥From Node:
- 
属性
¥Properties
- 
- 
ℹ️ 将返回渲染此组件的 文档实例。
¥ℹ️ Will return the document instance where this component was rendered.
 
 - 
 
 - 
方法
¥Methods
- 
- 
ℹ️ 如果组件未安装,将返回对自身的引用。
¥ℹ️ Will return a reference to itself if the component is not mounted.
 
 -