classList:保存控制当前元素名的各个方法和属性 在元素中切换类名: this.classList.toggle("类名"); 包含此类: this.classList.contains("类名");