<text wx:for="{{titles}}" wx:key="{{item}}"
class="home-title {{index == activeIndex ? 'active' : ''}}"
bindtap='changeClassify'> {{item.name}} </text>
// index == activeIndex classw为 "home-title active" 否则为 "home-title "
<text wx:for="{{titles}}" wx:key="{{item}}"
class="home-title {{index == activeIndex ? 'active' : ''}}"
bindtap='changeClassify'> {{item.name}} </text>
// index == activeIndex classw为 "home-title active" 否则为 "home-title "