html:
<li v-for="(item,index)in toplist" :class="{rotate:!!([1,2,5,8].indexOf(index)+1)}">{{item.text}}</li>
css:
.rotate{
  color:red
}

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2021-12-27
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-11-29
  • 2021-04-16
  • 2021-11-29
  • 2022-01-14
  • 2021-11-29
  • 2021-11-29
  • 2021-11-29
相关资源
相似解决方案