急!!!!为什么XMLHTTP读取不了XML ?????????????????????????????????????? xmlhttp.Open( "GET", "xml.html", true); => true改成false;不要同步 alert(xmlhttp.Text); 改成这个试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 错了alert(xmlhttp.responseText); 你的是xml.html不是XML文件.所以..<script>function read(){xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //打开xml.htmlxmlhttp.Open( "GET", "xml.html", true); xmlhttp.Send();//测试并显示,所以用responseTextalert(xmlhttp.responseText); }</script><input type=button onclick="read()" > 如何给动态创建的表格添加表格线 左侧三级菜单样式设计 用jquery,asp.net一般处理程序,json对象实现html页面数据的增删改查 怎么用 getEelementByClass 找到后边的 TEXT 内容??? 如何求时间差,不是日期差 关于数字签名。 哪位大哥有下拉树形菜单的程序例子 在登陆之后让整个页面自动的刷新一遍! 有关取一个隐含input的值的问题,大虾们救我! 表格中的文字能通过JS得到吗? 表单判断问题,分不够再加 错误:'window.myform.ALink'为空或不是对象 ??
alert(xmlhttp.responseText);
function read()
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
//打开xml.html
xmlhttp.Open( "GET", "xml.html", true);
xmlhttp.Send();
//测试并显示,所以用responseText
alert(xmlhttp.responseText);
}
</script>
<input type=button onclick="read()" >