html5中文学习网

您的位置: 首页 > 网站及特效实例 > javascript特效 » 正文

Js nodeType 属性全面解析_javascript技巧_

[ ] 已经帮助:人解决问题

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

语法:
elementNode.nodeType

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

(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助