jQuery AJAX request failing in IE

前端 未结 8 1264
[愿得一人]
[愿得一人] 2020-11-30 03:42

The following AJAX call is failing in IE.

$.ajax({
    url:\"{{SITE_URL}}/content/twitter.json\",
    dataType:\"json\",
    error:function(xhr, status, erro         


        
8条回答
  •  一生所求
    2020-11-30 04:16

    What is the {{SITE_URL}} chunk giving is about. Try looking at the code in view source code of the browser. If the {{SITE _URL}} chunk has a trailing slash and that would make the request url:

    http://modomain.com//content/twitter.json
    

    Which could creep IE out?

提交回复
热议问题