Closed DevilRoshan closed 4 years ago
// 以下代码的输出 async function fn(){ await new Promise((reslove) => { reslove('aaa') }) return 'bbbb' } async function func() { let a = await fn().then((res) => res); console.log(a) } func()
https://github.com/DevilRoshan/Question/blob/master/20200725-js-promise-2.md