TA贡献1779条经验 获得超6个赞
promise 要用then接收
getProvince().then(data => { this.provinces = data })
或者await async
async function test() { this.provinces = await getProvince(); }
TA贡献1818条经验 获得超3个赞
async实现:async function test() {this.provinces = await getProvince();}
举报
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号