动态添加class
作者:互联网
class动态添加
<view href="#" @click="showDiv=1" :class="{'select':showDiv===1}">跟进记录(8)</view>
<view href="#" @click="showDiv=2" :class="{'select':showDiv===2}">详情</view>
<view href="#" @click="showDiv=3" :class="{'select':showDiv===3}">销售机会(12)</view>
<view href="#" @click="showDiv=4" :class="{'select':showDiv===4}">报价机会(3)</view>
标签:12,添加,详情,机会,动态,class 来源: https://blog.csdn.net/zhanghaoplc/article/details/120353435