【文件属性】:
文件名称:ajax的例子
文件大小:1.09MB
文件格式:ZIP
更新时间:2017-02-28 04:28:28
json
//构建全局的XmlHttpRequest对象
var xmlHttpRequest;
//根据不同的浏览器创建XmlHttpRequest
function createXmlHttpRequest(){
//如果该对象不支持IE浏览器,那么利用其他方式构造对象
if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.XMLHTTP");
}
//创建火狐浏览器的XmlHttpRequest对象
else if(window.XMLHttpRequest)
{
return new XMLHttpRequest();
}
}
【文件预览】:
T6_Web
----.project(1KB)
----.settings()
--------org.eclipse.jdt.core.prefs(330B)
----.mymetadata(291B)
----WebRoot()
--------WEB-INF()
--------index.jsp(3KB)
--------META-INF()
----.myeclipse()
----src()
--------com()
----.classpath(834B)