获取各种节点

  1. firstChild (firstElementChild)
  2. lastChild (lastElementChild)
  3. nextSibling (nextElementSibling)
  4. previousSibling (previousElementSibling)



    
    2.1 firstChild,lastChild,nextSibling,previousSibling
    


    
  • 111
  • 222
  • 333
  • 444

你可能感兴趣的:(获取各种节点)