v-bind:class="index== num? activeClass : ''"
index是循环数组的索引,num是点击获取的索引。
vue 点击切换class
猜你喜欢
转载自www.cnblogs.com/shamszhang/p/11120814.html
今日推荐
周排行