//1
async function f() {
return 'hello world';
}
f().then(res => console.log(res))
//2
async function f() {
return await 'hello world';
}
f().then(res => console.log(res))
写法一和写法二有啥区别
哈士奇WWW
慕神8447489
慕少森
江户川乱折腾
随时随地看视频慕课网APP
相关分类