jQuery AJAX request failing in IE

前端 未结 8 1261
[愿得一人]
[愿得一人] 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:36

    One major problem with statically generated JSON and IE are the leading "commas", for examples this throws an error in IE:

    {
        "one":"hello",
        "two":"hi",
     }
    

    Note the last comma.

提交回复
热议问题