fetch1 [JavaScript] fetch() fetch() 함수란? HTTP 요청 전송 기능을 제공하는 Web API 입니다. 데이터를 받아오는 경우에 사용 됩니다. fetch("https://jsonplaceholder.typicode.com/posts/1") .then((response) => response.json()) .then((data) => console.log(data)) fetch('URL')은 웹 브라우저에 'URL요청' 이라는 의미이고, .then은 '요청이 끝나고나서 실행' 이라는 의미 입니다. 2023. 8. 1. 이전 1 다음