若await接收到的不是Promise,await會把該其值轉換為已正常處理的Promise,然後等待其工作完成。 function resolveAfter2Seconds(x) { return new Promise ...
確定! 回上一頁