欢迎光临,流星雨博客!!!
  • 99 childNodes 获取元素的子节点集合

    element.childNodes

  • 100 nodeType 节点类型

    document.body.nodeType

  • 101 nodeValue 节点值

    childNodes[0].nodeValue

  • 102 firstChild 获取节点集合中的第一个值

    childNodes[0].nodeValue == childNodes.firstChild.nodeValue

  • 103 lastChild 获取节点集合中最后一个

    node.lastChild