Js nodeType 属性全面解析

Js nodeType 属性全面解析

js/jQuery 2025-04-10 16:10:13 1个月前

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

文章版权声明:除非注明,否则均为网络转载文章,转载或复制请以超链接形式并注明出处。

最新资讯

热门资讯