在html5中增加了classList
document.getElementById("button").classList.add(“active”);
document.getElementById("button").classList.remove("active");