摘要: 元素类名属性的操作 返回元素类名--ele.classList 添加类名 ele.classList.add(na1,na2....) 删除类名 ele.classList.remove(na1,na2.....) 判断类名是否存在 ele.classList.contains(na) 切换类名 e 阅读全文
posted @ 2022-05-29 14:30 大哥成 阅读(13) 评论(0) 推荐(0) 编辑