兼容性问题
获得xhr对象
非ie:new XMLHttpRequest()
ie:new ActiveXObject()
写法:
if(window.XMLHttpRequest)
{
var xhr=new XMEHttpRequest();
}else{
var xhr=new ActiveXObject();
}
Ajax ajax原生对象-xhr对象兼容性写法
猜你喜欢
转载自blog.csdn.net/weixin_43294560/article/details/103655144
今日推荐
周排行