function initxmlhttp()
{
var xmlhttp
try {
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp=false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp=false;
}
}
if (!xmlhttp && window.createRequest) {
try {
xmlhttp = window.createRequest();
} catch (e) {
xmlhttp=false;
}
}
return xmlhttp;
}
快速创建你xmlhttp的方法
原创wx5b24b124aba12 ©著作权
©著作权归作者所有:来自51CTO博客作者wx5b24b124aba12的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:操作iframe的方法
下一篇:jsMap地图网点
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
熟记这个方法让你快速创建图形界面
用python快速创建桌面图形界面的方法
App 父类 构造函数 -
XmlHttp对象及其方法
XmlHttp对象及其方法
xml 服务器 数据