87,910
社区成员
发帖
与我相关
我的任务
分享
看看xmlHttpRequest方面的数据就可以了
var objHTTP = new ActiveXObject("Microsoft.XMLHTTP")
objHTTP.Open('GET','httprequest.asp?param=abc',false)//asp就是接收数据的
objHTTP.onreadystatechange = function () {
alert(objHTTP.responseText);//服务器返回的数据
};
objHTTP.Send()
服务器端
<%if request.QueryString("param") <>"" then
response.Write("hello" + request.QueryString("param"));
end if
%>
用request获取参数,参数就是url后面的
response输出你的信息,就是alert(objHTTP.responseText);这里的信息
var objHTTP = new ActiveXObject("Microsoft.XMLHTTP")
objHTTP.Open('GET','httprequest.asp',false)//asp就是接收数据的
objHTTP.onreadystatechange = function () {
alert(objHTTP.responseText);//服务器返回的数据
};
objHTTP.Send()