dom --nodetype属性

nodeType 属性返回节点的类型。


元素类型             NodeType
元素Element                    1
属性Attribute                    2
文本Text                            3
注释Comment                  8
文档Document                 9
文档碎片DocumentFragment  11

你可能感兴趣的:(node)