//现在用排他思想给分页加点击事件
<span
class="paging-num"
:class="{ wirte: iswrite == index + 1 }"
v-for="(item, index) in pageNum"
:key="index"
@click="changeNum(item)"
>
.wirte {
background-color: #fff;
color: #333;
}
data(){
return{
iswrite: 1,
}
}
methods:{
changeNum(t) {
this.iswrite = t;
},
}