<view class="{{index == 0 ? 'getFocus' : 'lostFocus'}}" style="color:{{ newNoite ? 'red' :'#eee'}}">常用</view>
index在js 的data里,getFocus和lostFocus是wxss的两个样式
<view class="{{index == 0 ? 'getFocus' : 'lostFocus'}}" style="color:{{ newNoite ? 'red' :'#eee'}}">常用</view>
index在js 的data里,getFocus和lostFocus是wxss的两个样式