使用classList来实现两个按钮样式的切换方法 classList属性的方法:add();remove();toggle();描述,在一些页面我们需要使用两个按钮来回切换, 使用classList来实现两个按钮样式的切换