//1.创建对象
let xhr;
if(window.ActiveXObject){
//ie
xhr=new ActiveXObject("Microsoft.XMLHttp");
}else{
//非ie
xhr = new XMLHttpRequest;
}
XMLHttpRequest对象的兼容
最新推荐文章于 2019-09-28 09:50:49 发布
//1.创建对象
let xhr;
if(window.ActiveXObject){
//ie
xhr=new ActiveXObject("Microsoft.XMLHttp");
}else{
//非ie
xhr = new XMLHttpRequest;
}