1const myPromise = Promise.resolve(Promise.resolve("Promise!")); 2 3function funcOne() { 4 myPromise.then(res => res).then(res => console.log(res)); 5 setTimeout(() => console.log("Timeout!"), 0); 6 console.log("Last line!"); 7} 8 9async function funcTwo() { 10 const res = await myPromise; 11 console.log(await res); 12 setTimeout(() => console.log("Timeout!"), 0); 13 console.log("Last line!"); 14} 15 16funcOne(); 17funcTwo();
本题为“单选题”