(!response.ok) throw new Error(response.statusText) return response.json() }).catch(function(err) { // Error :( }). 或是先用另一個處理狀態碼的函式,使用 Promise.
確定! 回上一頁