最後,async 函式返回的是一個promise 物件,如果要獲取到promise 返回值,我們應該用then 方法,程式碼如下: async function timeout() { return 'hello ...
確定! 回上一頁