function crt() {
xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if(this.readyState == 4 && this.status == 200) {
document.querySelector(".list").innerHTML = JSON.parse(this.responseText);
}
}
xhr.open("GET", "line.json", true);
xhr.send();
console.log("done");
}
{
"
<div class="div"><h1>hello</h1></div>
"
}