const p = new Promise(callback<resolve, reject>) // .then() 中可以放入兩個callback,如果需要提早攔截並處理錯誤是可行的
確定! 回上一頁