摘要: 同级切换类名 代码: <ul> <li v-for="(item,index) in items" :key="item.id" :class="{active:id==index}" @click="clickSwitch(index)"> {{ item.title }} </li> </ul> 阅读全文
posted @ 2021-04-29 16:26 馬騳驫驷 阅读(927) 评论(0) 推荐(1)