[Javascript 기초] 3. Fetch API - 1
비동기 통신의 필요성. Ajax (Asynchronous JavaScript and XML)// Ajax (XMLHttpRequest)const xhr = new XMLHttpRequest();xhr.open('GET', 'https://api.example.com/data');xhr.onload = () => { if (xhr.status === 200) { console.log(xhr.responseText ); }};xhr.send(); Jquery Ajax$.ajax ({ url : "url", type : "GET", data : {key : value}, // 요청 시 포함되어질 데이터 success : function(data, status, xhr..