XML DOM nodeType 属性
-
定义和使用
nodeType 属性返回所选节点的节点类型。 -
浏览器支持
Internet Explorer Chrome FireFox Safari Opera 8.0(包含)以上支持 4.0(包含)以上支持 2.0(包含)以上支持 3.0(包含)以上支持 9.0(包含)以上支持 所有主流的浏览器均支持 nodeType 属性。
-
语法
参数
节点编号 节点名称 1 Element 2 Attribute 3 Text 4 CDATA Section 5 Entity Reference 6 Entity 7 Processing Instruction 8 Comment 9 Document 10 Document Type 11 Document Fragment 12 Notation -