ajax正确返回但数据不显示

代码<!DOCTYPEhtml><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Cont... 代码
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ajaxXML</title>
<script type="text/javascript">
function ajax() {
var xmlhttp = XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("post", "../json.ashx", true);
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4) {
if (xmlhttp.statusText == 200) {
alert("xmlhttp.responseText");
}
}
}
xmlhttp.send();
}
</script>
</head>
<body>
<input type="button" value="Button" onclick="ajax()" />
</body>
</html>
下面是图片代码

这是返回的结果图

但是没有数据显示。求大神指点
速求大神指点
展开
 我来答
清风之无痕岁月05
2015-04-02 · TA获得超过236个赞
知道小有建树答主
回答量:489
采纳率:77%
帮助的人:131万
展开全部
你的json.ashx 文件可以正常执行吗? 先执行下看看
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式