Internet Explorer取消AJAX请求



我正在通过ajax -jquery向服务器请求,此请求返回2000多个记录(约16,000个记录)

在Google Chrome中执行了呼叫,尽管它花费了大约40秒,但是在Internet Explorer 11中,执行被取消,并且在控制台中没有显示错误,但它根本不会打电话。

为了减少我试图调用1500个记录的执行时间,在Google Chrome中它运行得很好,但在Internet Explorer中仅进行第一个调用:

mostrar: function() {
  this.loader = true;
  $.ajax({
    contentType: 'application/json;',
    dataType: 'json',
    type: 'POST',
    url: ('Ajax.asp?rad=' + this.radio1 + '&offsetq=' + this.limit),
    data: 1,
    success: function(e) {
      if (app.radio1 == "0")
        app.programas = e.programas;
      if (e.continuar == "1" && app.radio1 == "1") {
        app.limit = e.conteo;
        console.log(app.limit);
        console.log("va a continuar");
        //  app.programas = (e.programas);    
        app.mostrar();
      }
      app.loader = false;
    },
    failure: function(e) {
      console.log(e);
      app.loader = false;
    }
  });
}

我正在使用vue.js,但是我使用jQuery进行了呼叫,因为Axios提出了与Internet Explorer 11的不兼容,目前此代码在Chrome,Edge,Mozilla Firefox中起作用。

在Chrome中,他正确打了电话,在Internet Explorer中,他只打了电话:https://i.stack.imgur.com/rbdi9.png(chrome)https://i.stack.imgur.com/z7mkl.png(Internet Explorer)

也许修复了contentTypedata将解决您的问题。尝试使用该参数执行$.ajax

$.ajax({
  contentType: 'application/json',
  dataType: 'json',
  type: 'POST',
  url: ('Ajax.asp?rad=' + this.radio1 + '&offsetq=' + this.limit),
  data: {},
  ...
});

fyi:如果您不需要将任何数据发送到服务器,也许更好地使用GET而不是POST