Fetch는 원격 리소스를 훨씬 쉽게 '가져올' 수 있는 새로운 API입니다. XMLHttpRequest와 마찬가지로 Fetch를 사용하여 요청을 동일한 출처 또는 교차 도메인 요청으로 만들 수 있습니다. Fetch에서는 더 깔끔하고 강력한 API를 사용하여 요청을 응답에서 분리하고 프로미스를 사용하여 응답을 반환합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-09(UTC)
[null,null,["최종 업데이트: 2024-08-09(UTC)"],[[["Fetch API simplifies fetching remote resources, offering a more streamlined approach than XMLHttpRequest."],["It supports both same-origin and cross-domain requests for versatile resource retrieval."],["Fetch API provides a clear separation between request and response for enhanced code organization."],["It leverages promises for efficient asynchronous handling of responses, improving code readability and performance."]]],["Fetch API simplifies fetching remote resources, handling both same-origin and cross-domain requests. It offers a refined interface compared to XMLHttpRequest, distinguishing the request from the response. Crucially, Fetch utilizes promises to deliver the response, providing a more structured and efficient method for managing asynchronous operations. Its improved design aims to streamline the process of data retrieval from remote sources.\n"]]