兼容性问题
获得xhr对象
非ie:new XMLHttpRequest()
ie:new ActiveXObject()
写法:
if(window.XMLHttpRequest)
{
var xhr=new XMEHttpRequest();
}else{
var xhr=new ActiveXObject();
}
Ajax ajax native object -xhr Object Compatibility wording
Guess you like
Origin blog.csdn.net/weixin_43294560/article/details/103655144
Recommended
Ranking