Home  >  Q&A  >  body text

javascript - Ajax request fails under IE9?

1. Request to execute error directly under ie9

2.$.ajax({

    url: apiServiceBaseUri + 'token',
    type: "post",
    data: data,
    dataType: 'json',
    success: function (response) {
        loginSucc(response);
    },
    error: function(response) {
        var res = JSON.parse(response.responseText);
        $(".hint").show().html(res.error_description);
    }
});
PHP中文网PHP中文网2710 days ago416

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-19 10:20:38

    Look under the console, has the request been sent? And what are the error messages? Is the url entered correctly?

    reply
    0
  • Cancelreply