Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
来源:互联网 发布:适合数据分析的电脑 编辑:程序博客网 时间:2024/05/22 04:41
安装了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之后也是一样。
刷新页面之后就不会再报上文的警告了。
- 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的问题
- 关于chrome Resource interpreted as Script but transferred with MIME type text/html的问题
- Resource interpreted as Image but transferred with MIME type text/plain 警告解决方案
- 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 Script but transferred with MIME type text/html
- Java过滤器引发的异常:Resource interpreted as Stylesheet but transferred with MIME type text/html
- web——css和图片突然加载不了,console报错:Resource interpreted as script but transferred with MIME type text/html.
- SpringMVC Resource interpreted as Script but transferred with MIME type application/octet-stream:
- 样式加载不出来,浏览器控制台报错:Resource interpreted as Stylesheet but transferred with MIME type text/html
- Resource interpreted as Stylesheet but transferred with MIME type text/html:以及Uncaught SyntaxError:
- 建站记录2-CSS文件未加载-已解决-Resource interpreted as Stylesheet but transferred with MIME type text/plain
- ajaxfileupload上传文件,返回json数据报错的问题。 Resource interpreted as Document but transferred with MIME type ap
- 关于easyui Resource interpreted as Document but transferred with MIME type application/json
- Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- Java环境变量配置
- 多线程__【线程安全】【线程同步】【单例模式的线程安全】【线程死锁】
- Android 方法调用堆栈信息显示
- DES算法
- 中国企业系列
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- json 格式,以及json数据获取
- AVL平衡树的实现
- [javax.servlet.ServletException: java.lang.NullPointerException]
- Java与XML(一):采用DOM操作XML文件
- 从拼图游戏开始(三)_可行解的讨论
- vc6静态库的生成和调用
- why GNU grep is fast
- Java与XML(二):使用Dom4j 操作 XML 文件