获取节点
原生js第一章
获取节点分以下几种:
document.getElementById获取id
返回值是对象
document.getElementsByClassName获取class
返回值是数组
document.getElementsByTagName获取标签