📅  最后修改于: 2022-03-11 14:55:27.687000             🧑  作者: Mango
const cancelTokenSource = axios.CancelToken.source();
axios.get('/user/12345', {
cancelToken: cancelTokenSource.token
});
// Cancel request
cancelTokenSource.cancel();