---
title: "dom --nodetype属性"
author: "小丑鱼0703"
date: "2014-05-06T11:22:51Z"
tags: []
categories: ["Web前端"]
slug: "dom-nodetype"
draft: false
lastmod: "2015-04-04T14:47:58Z"
id: 2062002
url: "https://wangjingyi.iteye.com/blog/2062002"
---

nodeType 属性返回节点的类型。


<span style="color:darkblue">元素类型	            NodeType</span>
元素Element	                   1
属性Attribute	                   2
文本Text	                           3
注释Comment	                 8
文档Document	                9
文档碎片DocumentFragment  11