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