https://github.com/axios/axios
GitHub - axios/axios: Promise based HTTP client for the browser and node.js
Promise based HTTP client for the browser and node.js - GitHub - axios/axios: Promise based HTTP client for the browser and node.js
github.com
//data : 서버가 제공한 응답(데이터)
console.log(response.data);
//status : 서버 응답의 HTTP 상태 코드
console.log(response.status);
참고
https://yamoo9.github.io/axios/guide/response-schema.html
응답 스키마 | Axios 러닝 가이드
응답 스키마(Schema) 요청에 따른 응답 결과는 다음 정보가 들어 있습니다. { data: {}, status: 200, statusText: 'OK', headers: {}, config: {}, request: {} } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 then을 사용하면
yamoo9.github.io
'Others' 카테고리의 다른 글
vuex-persistedstate (0) | 2022.06.28 |
---|