nodeType是用来获得当前节点对象的类型。
nodeType 属性可返回节点的类型。
元素element   1   
属性attr   2   
文本text   3   
注释comments   8   
文档document   9  

posted on 2016-12-12 09:43  仔仔爱学习  阅读(428)  评论(0编辑  收藏  举报