网络编程 
首页 > 网络编程 > 浏览文章

Js nodeType 属性全面解析

(编辑:jimmy 日期: 2025/5/14 浏览:3 次 )

定义和用法
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

上一篇:浅析用prototype定义自己的方法
下一篇:open 动态修改img的onclick事件示例代码
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 网站地图 SiteMap