dpes8693 / frontend-mentor-program-1rd

前端培訓
0 stars 1 forks source link

鍾宛余_HW6&Question #50

Closed Jc22124 closed 2 months ago

Jc22124 commented 2 months ago
dpes8693 commented 2 months ago
dpes8693 commented 2 months ago

只要把.catch 加在最後一個 then 即可,不用多個 catch 補充: catch 負責攔截 Promise 回傳失敗

可參考: https://ithelp.ithome.com.tw/articles/10242649 https://www.casper.tw/development/2020/02/16/all-new-promise/