📅  最后修改于: 2022-03-11 15:03:03.603000             🧑  作者: Mango
document.getElementById("myElementID").classList.add('myClassName');
document.getElementById("myElementID").classList.remove('myClassName');