Js nodeType 属性全面解析
时间:2021-03-11 10:06:17|栏目:JavaScript代码|点击: 次
定义和用法
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 |
栏 目:JavaScript代码
下一篇:javascript-简单的计算器实现步骤分解(附图)
本文标题:Js nodeType 属性全面解析
本文地址:http://www.codeinn.net/misctech/78501.html






