You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fetch api 와 XmlHttpResuest 모두 웹 페이지가 사용자가 현재 하고 있는 것을 방해하지 않으면서 페이지의 일부를 업데이트할 수 있도록 도와주는 비동기 기능이라는 점에서는비슷하지만, 또한 fetch 의 경우에는 request 와 response 에 대해 Cache api 를 사용할 수 있지만, XHR 은 그렇지 않고, XHR 에서 할수는 있지만 fetch 에 할 수 없는 것은 request 를 취소하는 것이라고 합니다.
질문
비동기 프로그래밍이 가능한
fetch API
와XMLHttpRequest
객체의 차이점은 무엇일까요?여러분은 주로 어떤 것을 써왔나요? 그 이유 혹은 장점은 어떤 게 있나요?
관련 챕터
43장
참고
https://developer.mozilla.org/ko/docs/Web/API/Fetch_API/Using_Fetch
The text was updated successfully, but these errors were encountered: