【问题标题】:Jquery Ajax - post huge string value in AjaxJquery Ajax - 在 Ajax 中发布巨大的字符串值
【发布时间】:2019-02-03 03:20:07
【问题描述】:

我已经尝试过下面的链接,但在我的服务器上不起作用。 Jquery Ajax - post huge string value

【问题讨论】:

  • 欢迎。请提供更多信息,否则将很难为您提供帮助。展示你正在使用的代码并解释什么不工作以及发生了什么。谢谢。

标签: php jquery ajax


【解决方案1】:

试试这个

    $.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);
                }
            }
        });

【讨论】:

    猜你喜欢
    • 2013-07-22
    • 2017-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-14
    • 1970-01-01
    • 1970-01-01
    • 2023-02-07
    相关资源
    最近更新 更多