如上图,我想在value里面加入checked:false,来判断选择状态
this.productSpecs = val.specItems;
let map = new Map()
this.productSpecs.forEach(({specItem, specName})=>
{map.set(specName, specItem.split(","),
)})
this.productSpecs = val.specItems;
let map = new Map()
this.productSpecs.forEach(({specItem, specName})=>
{map.set(specName, specItem.split(","),
)})
你还是去看看map数据结构吧,map只有key和value,没有其他