[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
相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息