用JS添加和删除class类名

document.getElementsByClassName("ele_id").classList.remove("someclassname");
原文地址:https://www.cnblogs.com/sinceret/p/11055298.html