定义和用法
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 属性全面解析的全部内容,更多相关Js内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复