nodeType

HTMO DOM中常用属性 nodeName   nodeValue   nodeType
(可以用来区别DOM对象和其他对象    if(obj.nodeType){};     )
 

nodeType 节点类型

1、element
2、arrtibute
3、text
4、cdata
5、entity refference
6、entity
7、PI (processing  instructing)
8、comment
9、document
10、document type
11、document fragment
12、notation

posted on 2016-01-26 11:33  迷茫小飞侠  阅读(204)  评论(0编辑  收藏  举报

导航