function ajax(a
,b
){
var aj
;
if(XMLHttpRequest
){
aj
=new XMLHtttpRequest();
}else{
aj
=new ActiveXObject('Microsoft XMLHTTP');
}
aj
.open(a
,b
,true);
aj
.send(null);
aj
.onreadystatechange=function(){
if(aj
.readystate
==4&&aj
.status
==200){
var mes
=JSON.parse(aj
.responseText
);
}
return mes
;
}
}
ajax('get',url
);
转载请注明原文地址: https://mac.8miu.com/read-506484.html