XMLHttpRequest Ajax 找不到.NET页面
<html><head>
<title>dd</title>
<script language="javascript" type="text/javascript">
var xm;
function https()
{
if(window.ActiveXObject)
{
xm=new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
xm=new XMLHTTpRequest();
}
}
function han()
{
if(xm.readyState==4)
{
if(xm.status==200 || xm.status==0)
{
document.getElementById("results").innerHTML=xm.responseText;
}
}
}
function star()
{
https();
if(xm!=null)
{
xm.open("GET","Default1.aspx",true);
xm.onreadystatechange=han;
xm.send(null);
}
}
</script>
</head>
<body>
<form action="#">
<input type="button" value="显示" onclick="star()" />
<div id="results"></div>
</form> </body>
</html>
出404错误有那么大虾知道为什么吗? --------------------编程问答-------------------- xm.open("GET","Default1.aspx",true);
检查路径 --------------------编程问答-------------------- Default1.aspx 和当前页面的相对路径 --------------------编程问答-------------------- 绝对是路径的问题
--------------------编程问答--------------------
问题是我换个浏览器就可以 --------------------编程问答-------------------- 哪就是你的问题了
补充:.NET技术 , .NET Framework