【问题标题】:How can we access to "server response" of "jqXHR" of ajaxSubmit function? [closed]我们如何访问 ajaxSubmit 函数的“jqXHR”的“服务器响应”? [关闭]
【发布时间】:2012-04-10 19:11:57
【问题描述】:

ajaxSubmit 返回表单元素。 我们如何访问其ajax请求的“jqXHR”的“服务器响应”?

【问题讨论】:

    标签: jquery ajax forms submit jqxhr


    【解决方案1】:

    您需要访问success: 事件处理程序。

    查看他们页面上的示例:http://jquery.malsup.com/form/#ajaxSubmit

    【讨论】:

      【解决方案2】:
              var response,xhr;
              $(form).ajaxSubmit({
                  success:function (d, t, x) {                  
                      response=d;
                      xhr=x;
                  }
              });
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-08-17
        • 1970-01-01
        • 2012-01-11
        • 1970-01-01
        • 2013-11-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多