JS node.firstChild会返回node的所有子节点,而不是第一个子节点; 如果想返回第一个子节点需要用node.firstChild.nodeValue; lastChild也相同.
確定! 回上一頁