如图,我想点击事件后就改变ifactive里面的逻辑值该怎么写呢,谢谢
multiselect: function (index) { this.ifactive.splice(0,1,false) }
详情见:Vue中的数组更新检测-注意事项
method添加方法用splice()修改数组
vue监听系统没办法监听数组内数据的变化的,试试用this.$set(this.ifactive,'0',false) 这样来触发变化
详情见:Vue中的数组更新检测-注意事项