var ajax = new XMLHttpRequest();
ajax.open('get', 'url');
ajax.send();
ajax.onreadystatechange = function(){
if(ajax.readyState == 4){
ajax.response
}
}
var ajax = new XMLHttpRequest();
ajax.open('get', 'url');
ajax.send();
ajax.onreadystatechange = function(){
if(ajax.readyState == 4){
ajax.response
}
}
转载于:https://my.oschina.net/qjd/blog/3061113