nodeType属性
元素节点 1
属性节点 2
文本节点 3
<p>元素本身的nodeValue是null,文本是<p>元素的第一个子节点
所以获得<p>的文本应该 firstChild.nodeValue