$(function() {
$("#Agent_ID").change(function() {
var typevalue = $("#Agent_ID").val();
alert(typevalue);
$.ajax({
type: "post",
url: "/AgentInfo/Index",
data: { Agent_ID: typevalue },
dataType: "html",
success: function(evt) {
eval["var evt=" + evt];
$("#DivGrid").html(evt);
},
complete: function(XMLHttpRequest, textStatus) { },
error: function() { alert("服务器超时!") }
});
})
});把你的JS重写了一下你返回的数据也提供出来。是不是返回的html有一些特殊字符什么的!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货