this.productSpecs = val.specItems; let map = new Map() this.productSpecs.forEach(({specItem, specName})=> {map.set(specName, specItem.split(","), )})
你还是去看看map数据结构吧,map只有key和value,没有其他
vue中map对象是做不到响应式的