最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
最好的xmlhttp创建方法
时间:2009-04-06 编辑:简简单单 来源:一聚教程网
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;
}
-
上一个: js switch 教程
-
下一个: css 使超链接的焦点变大
相关文章
- XML中的处理指令解析 09-28
- XML中的字符实体与字符数据解析 09-28
- XML中的属性学习代码展示 09-28
- XML中的文档与声明用法介绍 09-28
- 编写SVG布置画布和坐标系统以及视窗的教程 09-28
- XML中的文档与声明使用方法 09-27