首页 > 语言 > JavaScript > 正文

Js nodeType 属性全面解析

2024-05-06 15:55:02
字体:
来源:转载
供稿:网友
本文是对Js nodeType的属性进行了全面分析介绍,需要的朋友可以过来参考下,希望对大家有所帮助

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

语法:
elementNode.nodeType

节点编号:节点名称:

1Element

2Attribute

3Text

4CDATA Section

5Entity Reference

6Entity

7Processing Instrucion

8Comment

9Document

10Document Type

11Document Fragment

12Notation

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选