Id名用document.getElementById获取,类名怎么获取呢
document.getElementById("name")
document.getElementsByClassName('ClassName');