📅  最后修改于: 2022-03-11 15:01:50.680000             🧑  作者: Mango
var someElement= document.getElementById("myElement");
someElement.className += " newclass";//add "newclass" to element (space in front is important)