ajax为什么没得到返回值
由于response.end出现:线程正被中止。异常我在ajax返回的时候用:this.Response.Write(count);
HttpContext.Current.ApplicationInstance.CompleteRequest();来代替?可是在:
unction RequestXML()
{
var url = "";
url = "Imports.aspx";
CreateXMLHttpRequest();
xmlHttp.open("get",url);
xmlHttp.onreadystatechange = GetXMLResult;
xmlHttp.send(null);
}
function GetXMLResult()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
alert(xmlHttp.responseText);
}
}
}
alert(xmlHttp.responseText);没有输出任何信息.