1
아직 JavaScript의 기초를 배우고 있으며 API에서 정보를 반환하기 위해 간단한 GET HTTP 요청을하려고하는데 ResponseText가 반환되지 않습니다. 여기 코드는 다음과 같습니다JavaScript GET responseText
var xhr = new XMLHttpRequest();
xhr.open('GET', "https://api.apithis.net/dictionary.php?define=hi", true);
xhr.send();
console.log(xhr.responseText)