[js][html]nodeType

1	Element	表明元素	Element, Text, Comment, ProcessingInstruction, CDATASection, EntityReference
2	Attr	表明属性	Text, EntityReference
3	Text	表明元素或属性中的文本内容。	None
4	CDATASection	表明文档中的 CDATA 部分(不会由解析器解析的文本)。	None
5	EntityReference	表明实体引用。	Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
6	Entity	表明实体。	Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
7	ProcessingInstruction	表明处理指令。	None
8	Comment	表明注释。	None
9	Document	表明整个文档(DOM 树的根节点)。	Element, ProcessingInstruction, Comment, DocumentType
10	DocumentType	向为文档定义的实体提供接口	None
11	DocumentFragment	表明轻量级的 Document 对象,可以容纳文档的某个部分	Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
12	Notation	表明 DTD 中声明的符号。	None
相关文章
相关标签/搜索
本站公众号
   欢迎关注本站公众号,获取更多信息