<script type="text/javascript">var xmlHttp;
var queryStr;
function createQueryString()
{
queryStr=location.href.substring(location.href.indexOf("?"),location.href.length);
}
function doRequest()
{
createXMLHttpRequest();
createQueryString();
xmlHttp.onreadystatechange=parseResult;
xmlHttp.open("post","default.aspx"+queryStr,true);
xmlHttp.send(null);
}
function createXMLHttpRequest()
{
if(window.ActiveXObject)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHttpRequest)
{
xmlHttp=new XMLHttpRequest();
}
else
alert("您的浏览器不支持XMLHttpRequest!")
}
function parseResult()
{
if(xmlHttp.read
XMLHttpRequest学习笔记
最新推荐文章于 2020-04-05 21:35:45 发布