核心代码如下 wxml <button class="reset-top{ {chooseMonth?'':'-notchoosed'}}" bindtap="chooseMonthBtnClick" >按月</button> <button class="reset-bottom{ {chooseYear?'':'-notchoosed'}}" bindtap="chooseYearBtnClick">按年</button> <view wx:if