comput的get、set的使用方法。----持续更新
作者:互联网
computed:{ newChecked:{ get(){ return this.list.every(v => v.isChecked === false) }, set(val){ this.list.forEach(v => { v.isChecked = val }) } }, newChecked2:{ get(){ return this.list.every(v => v.isChecked) }, set(val){ this.list.forEach(v => { v.isChecked = val }) } } }
标签:set,comput,val,get,list,isChecked,every 来源: https://www.cnblogs.com/dcfkm666/p/14804362.html