发送超过 2000 个字符的 JSON 数据
Send JSON data over 2000 characters
是否可以发送超过 2000 个字符的 JSON 数据?
我的 url 长度是 5260,我收到错误 GET 404()。
在 json 中发送此数据有什么解决方案吗?
update: {
url: ServiceBase + "Coating/updateTestResult",
dataType: "json",
complete: function (jqXHR, textStatus) {
if (jqXHR.status == "200") {
showNotification("Alert", "Records updated.", "upload-success");
} else {
showNotification("Error", "Couldn't update records.", "info");
}
}
}
if (operation === "update") {
$.each(dataSource._data, function () {
var row = $("#grid tbody").find("tr[data-uid='" + this.uid + "']");
if (row.hasClass("blur")) {
row.removeClass("blur");
}
this.dirty = false;
});
return { models: kendo.stringify(options.models) };
}
尝试改为执行 POST 请求。最大限度。 URL 长度为 2000 个字符 (SO answer) 这就是您收到错误 404 的原因。
是否可以发送超过 2000 个字符的 JSON 数据? 我的 url 长度是 5260,我收到错误 GET 404()。 在 json 中发送此数据有什么解决方案吗?
update: {
url: ServiceBase + "Coating/updateTestResult",
dataType: "json",
complete: function (jqXHR, textStatus) {
if (jqXHR.status == "200") {
showNotification("Alert", "Records updated.", "upload-success");
} else {
showNotification("Error", "Couldn't update records.", "info");
}
}
}
if (operation === "update") {
$.each(dataSource._data, function () {
var row = $("#grid tbody").find("tr[data-uid='" + this.uid + "']");
if (row.hasClass("blur")) {
row.removeClass("blur");
}
this.dirty = false;
});
return { models: kendo.stringify(options.models) };
}
尝试改为执行 POST 请求。最大限度。 URL 长度为 2000 个字符 (SO answer) 这就是您收到错误 404 的原因。