李艳军

 

VS2013无法加载JSON格式

js中通过$.getJSON加载.json 文件时,报如下错误:

解决方案:dos命令中打开 IIS Express  ,执行如下命令:

appcmd set config /section:staticContent /+[fileExt  ension='.json',mimeType='text/plain']  

 

posted on 2015-12-08 14:58  李艳军  阅读(382)  评论(0编辑  收藏  举报

导航