注意await關鍵字,只能放在async函式裡面!!! function awaitMethod(num){ return new Promise((resolve,reject)=>{ setTimeout(()=>{ resolve(2*num); } ...
確定! 回上一頁