IE9 script response blocked due to mime type mismatch

后端 未结 2 2043
执念已碎
执念已碎 2020-12-31 10:43

I use the following code snippet to load data from google fusion table as json.

var fileref = document.createElement(\"script\");
fileref.setAttribute(\"type         


        
2条回答
  •  庸人自扰
    2020-12-31 11:29

    I'd just take out the fileref.setAttribute("type", "text/javascript");, since the likelyhood the mime-type will be updated by the server is unpredictable.

提交回复
热议问题