function goAjax(para)
{
var xmlHttp = null;
var time = new Date();
var flash = time.getTime();
try
{// Firefox, Opera 8.0+, Safari, IE7
xmlHttp = new XMLHttpRequest();
}
catch (e)
{// Old IE
try
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support XMLHTTP!");
return;
}
}
xmlHttp.open("Get", "<%=path%>/test.action?para=" + para
+ "&flash=" + flash, false);
xmlHttp.send(null);
var returnData = xmlHttp.responseText;
return returnData;
}
基础Ajax发送请求
最新推荐文章于 2024-11-05 21:37:11 发布