ajax-get.txt var ajax = new XMLHttpRequest();ajax.open('get', 'http://pauli.cn');ajax.send();ajax.onreadystatechange = function () {if (ajax.readyState == 4 ajax.status == 200) { console.log(ajax.responseText); }}
var ajax = new XMLHttpRequest(); ajax.open('get', 'http://pauli.cn'); ajax.send(); ajax.onreadystatechange = function () { if (ajax.readyState == 4 && ajax.status == 200) { console.log(ajax.responseText); } }