CallbackPromiseasync/await

$.ajax({
url : requestUrl,
type : 'DELETE', // get, post, put, delete
async : true, // default
data : JSON.stringify(requestParam),
dataType : "json",
timeout : 10000, // 제한 시간 설정
contentType : "application/json",```javascript
axios.get('https://example.com/api/data')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
```npm install axiosimport axios from "axios"GET : 리소스 조회POST : 리소스 추가, 등록PUT : 리소스 대체, 수정, 해당 리소스가 없으면 새롭게 생성DELETE : 리소스 삭제PATCH : 리소스 수정 (부분 변경)