【发布时间】:2019-02-03 03:20:07
【问题描述】:
我已经尝试过下面的链接,但在我的服务器上不起作用。 Jquery Ajax - post huge string value
【问题讨论】:
-
欢迎。请提供更多信息,否则将很难为您提供帮助。展示你正在使用的代码并解释什么不工作以及发生了什么。谢谢。
我已经尝试过下面的链接,但在我的服务器上不起作用。 Jquery Ajax - post huge string value
【问题讨论】:
试试这个
$.ajax({
type: "POST",
url: "your_url",
data: {string:3MB_string},
contentType: "application/json",
dataType: "json",
success: function (data) {
if (data == undefined) {
alert("Error : 219");
}
else {
alert(data.d);
}
},
error: function (data) {
if (data == undefined) {
alert("Error : 465");
}
else {
alert("Error : 468 " + data.d);
}
}
});
【讨论】: