您可以让活动类依赖于布尔数据值:
<th v-on="click: myFilter" v-> <span >M</span></th>new Vue({ el: '#my-container', data: { isActive: false }, methods: { myFilter: function() { this.isActive = !this.isActive; // some pre to filter users } }})
欢迎分享,转载请注明来源:内存溢出
您可以让活动类依赖于布尔数据值:
<th v-on="click: myFilter" v-> <span >M</span></th>new Vue({ el: '#my-container', data: { isActive: false }, methods: { myFilter: function() { this.isActive = !this.isActive; // some pre to filter users } }})
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)