weixin_33694620 2015-11-05 04:26 采纳率: 0%
浏览 23

Ajax错误响应为时已晚?

Ajax function error response (Network error occurs) waiting for 1 min. If any function to quickly get for error response?

var $this=$(form);
 $.ajax({
    url: 'http://www.example.com/post.php',
           dataType: 'text',
            cache : false,
            crossDomain : true,
           type: 'post',
           contentType: 'application/x-www-form-urlencoded',
           data: $this.serialize(),
           async:false,
           success: function( data, textStatus, jQxhr ){
               alert(textStatus);
           },
           error: function( jqXhr, textStatus, errorThrown ){
               alert(errorThrown);
           }
      });
     return false;
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
    • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
    • ¥15 lingo18勾选global solver求解使用的算法
    • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
    • ¥15 Python3.5 相关代码写作
    • ¥20 测距传感器数据手册i2c
    • ¥15 RPA正常跑,cmd输入cookies跑不出来
    • ¥15 求帮我调试一下freefem代码
    • ¥15 matlab代码解决,怎么运行
    • ¥15 R语言Rstudio突然无法启动