用JS添加和删除class类名

 

添加:节点.classList.add("类名");

 

删除:节点.classList.remove("类名");

 

posted @ 2018-02-28 18:27  happynood  阅读(678)  评论(0编辑  收藏  举报