Welcome 微信登录

首页 / 脚本样式 / JavaScript / Js nodeType 属性全面解析

定义和用法
nodeType 属性返回被选节点的节点类型。

语法:
elementNode.nodeType

节点编号:节点名称:
1Element
2Attribute
3Text
4CDATA Section
5Entity Reference
6Entity
7Processing Instrucion
8Comment
9Document
10Document Type
11Document Fragment
12Notation