Js nodeType 属性全面解析
摘要:定义和用法nodeType属性返回被选节点的节点类型。语法:elementNode.nodeType节点编号:节点名称:1Element2A...
定义和用法
nodeType 属性返回被选节点的节点类型。
语法:
elementNode.nodeType
| 1 | Element |
| 2 | Attribute |
| 3 | Text |
| 4 | CDATA Section |
| 5 | Entity Reference |
| 6 | Entity |
| 7 | Processing Instrucion |
| 8 | Comment |
| 9 | Document |
| 10 | Document Type |
| 11 | Document Fragment |
| 12 | Notation |
【Js nodeType 属性全面解析】相关文章:
★ javascript中innerText和innerHTML属性用法实例分析
★ JavaScript正则表达式中的ignoreCase属性使用详解
★ Javascript中prototype属性实现给内置对象添加新的方法