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