我正在使用 Axios 進行 API 服務,只是好奇是否有任何官方方法來處理我們在 Ajax 調用中使用的“完整”事件。所以喜歡axios.get('/v1/api_endpoint?parameters')
.then((res) => { .. })
.catch((err) => { .. })
.complete(() => {}) // <== is there any way to handle this complete event?
axios 完成事件
蕪湖不蕪
2023-08-05 19:33:59