$.ajax({
url: href,
dataType: "json",
context: document.body,
cache: false,
type: "post",
data: "textBoxId=" + textBoxId,
success: function (result) {
alert("success");
},
error: function (error) {
document.write(error.responseText);
}
});一般情况下,都会成功,但好像一旦json的长度超过某个值时,就会失败,但error方法里的输出,证明了数据已经拿过来了,既然数据拿到了,为什么还会失败。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货