属性节点的nodeValue值
- 元素节点的 nodeValue 是 undefined 或 null
- 文本节点的 nodeValue 是文本自身
- 属性节点的 nodeValue 是属性的值
li是一个元素节点,所以它的nodeValue是null 或undefined.
属性节点的nodeValue值
- 元素节点的 nodeValue 是 undefined 或 null
- 文本节点的 nodeValue 是文本自身
- 属性节点的 nodeValue 是属性的值
li是一个元素节点,所以它的nodeValue是null 或undefined.