简单的JS控制button颜色随点击更改的实现方法 先上效果图:默认“今日”是选中状态,是行内样式:<buttontype="button"id="today"class="btn-link button点击变色