Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
2013-12-05 13:19
411 查看
安装了VS2012之后,chrome在加载页面的时候会报 Resource interpreted as Script but transferred with MIME type text/plain 的警告。
这是因为VS2012在安装的时候改了windows的注册表,将解析javascript的类型标示改成了text/plain,导致javascript被转换成了text/plain格式,但这并不影响javascript的运行。
解决方法如下:
1.WIN+R 打开运行框,输入“regedit”进入注册表。
2.在“计算机/HKEY_CLASSES_ROOT/.js”目录下找到Content Type键,将其值改为“text/javascript"。或则,可以将倒数两个键删除,因为在安装vs2012之前,这两个键是不存在的,当卸载vs2012之后也是一样。
刷新页面之后就不会再报上文的警告了。
这是因为VS2012在安装的时候改了windows的注册表,将解析javascript的类型标示改成了text/plain,导致javascript被转换成了text/plain格式,但这并不影响javascript的运行。
解决方法如下:
1.WIN+R 打开运行框,输入“regedit”进入注册表。
2.在“计算机/HKEY_CLASSES_ROOT/.js”目录下找到Content Type键,将其值改为“text/javascript"。或则,可以将倒数两个键删除,因为在安装vs2012之前,这两个键是不存在的,当卸载vs2012之后也是一样。
刷新页面之后就不会再报上文的警告了。
相关文章推荐
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- Resource interpreted as Script but transferred with MIME type text/plain:
- 关于chrome Resource interpreted as Script but transferred with MIME type text/html的问题
- 建站记录2-CSS文件未加载-已解决-Resource interpreted as Stylesheet but transferred with MIME type text/plain
- Resource interpreted as Script but transferred with MIME type text/plain
- web页面 显示 Resource interpreted as Stylesheet but transferred with MIME type text/plain的错误警告
- Resource interpreted as Image but transferred with MIME type text/plain 警告解决方案
- 关于chrome Resource interpreted as Script but transferred with MIME type text/html的问题
- 关于 Resource interpreted as Script but transferred with MIME type text/plain问题的处理
- web——css和图片突然加载不了,console报错:Resource interpreted as script but transferred with MIME type text/html.
- Resource interpreted as Script but transferred with MIME type text/html
- Resource interpreted as Stylesheet but transferred with MIME type text/plain
- golange 错误如下 Resource interpreted as Script but transferred with MIME type text
- Resource interpreted as Stylesheet but transferred with MIME type text/plain
- Resource interpreted as Stylesheet but transferred with MIME type text/html:以及Uncaught SyntaxError:
- Java过滤器引发的异常:Resource interpreted as Stylesheet but transferred with MIME type text/html
- Resource interpreted as Document but transferred with MIME type application/json laravel异常请求返回警告
- 解决IE浏览器中出现“Resource interpreted as Document but transferred with MIME type application/json”问题
- 警告:Resource interpreted as Stylesheet but transferred with MIME type application/x-css