码迷,mamicode.com
首页 > Web开发 > 详细

js vs2013中允许js访问json文件的解决方案

时间:2018-09-04 17:10:56      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:text   1.0   应用程序   mpi   work   ext   bug   .net   coding   

js  vs2013中允许js访问json文件的解决方案

 

<?xml version="1.0" encoding="utf-8"?>

<!--
  有关如何配置 ASP.NET 应用程序的详细信息,请访问
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
    <system.web>
      <compilation debug="true" targetFramework="4.5" />
      <httpRuntime targetFramework="4.5" />
    </system.web>
  <system.webServer>
    <staticContent>
      <!--临时允许js访问.json文件-->
      <mimeMap fileExtension=".json" mimeType="application/json"/>
    </staticContent>
  </system.webServer>
</configuration>

 

js vs2013中允许js访问json文件的解决方案

标签:text   1.0   应用程序   mpi   work   ext   bug   .net   coding   

原文地址:https://www.cnblogs.com/zlp520/p/9584519.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!