复制1const fn = () => (new Promise((resolve, reject) => { 2 console.log(1); 3 resolve('success') 4})) 5fn().then(res => { 6 console.log(res) 7}) 8console.log('start')
1const fn = () => (new Promise((resolve, reject) => { 2 console.log(1); 3 resolve('success') 4})) 5fn().then(res => { 6 console.log(res) 7}) 8console.log('start')
题库维护不易,您的支持就是我们最大的动力!