getIanMediumList().then(res => {
this.mixItems = this.mixItems.concat(res.items)
console.log('A': this.mixItems)
})
getGreenMediumList().then(res => {
this.mixItems = this.mixItems.concat(res.items)
console.log('B': this.mixItems)
})
console.log('C': this.mixItems)
A跟B都可以展示出數據
但是C展示不出來,會是空的
如何等兩個都完成後,讓C取得數據?
有异步了当然就得继续异步……