📌  相关文章
📜  js 附加类 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:50.680000             🧑  作者: Mango

代码示例3
var someElement= document.getElementById("myElement");
    someElement.className += " newclass";//add "newclass" to element (space in front is important)