Resource interpreted as Script but transferred with MIME type text/plain:
我用script做ajax跨域,请求返回的是个文本字符串,chrome提示:
Resource interpreted as Script but transferred with MIME type text/html.
(请求的是script文件,返回的却是个文本格式)
貌视chrome浏览器比较认这个格式~,去掉<!DOCTYPE html>就行了。
其他影响,有待观察
仅供参考
--------
来自前线最新的消息:
经查是chrome、ff对js里的obj.style.width赋值的宽度要带px ; 去掉<!DOCTYPE html>后chrome、ff会通融一些~
正如楼下大哥所说,那个提示只是个waring~并非error~
--------
附:
常见MIME类型设置方法:
http://apps.hi.baidu.com/share/detail/33987094
PHP里设置MIME:
<?php header('Content-type: application/x-javascript'); ?>
<?php echo 'jumUrl("http://t.qq.com/duxing")'; ?>
Resource interpreted as Script but transferred with MIME type text/plain:相关推荐
- 关于错误Resource interpreted as Script but transferred with MIME type text_html
Created by Jerry Wang, last modified on Aug 03, 2014 某ui component里的javascript不work,通过Chrome F12 Con ...
- Resource interpreted as Stylesheet but transferred with MIME type text/html: “**.jsp“,主要因为拦截器将所有资源拦截
1. 问题描述 网页内容正常加载,但是没有样式,而且样式路径是正确的,F12打开控制台看到提示"Resource interpreted as Stylesheet but transfer ...
- 【SpringBoot】浏览器报错Resource interpreted as Stylesheet but transferred with MIME type text/html
CSS 样式不能正常加载 发现页面的样式没有显示,报错信息如下: Resource interpreted as Stylesheet but transferred with MIME type t ...
- 【JavaWeb】已解决:Resource interpreted as Stylesheet but transferred with MIME type text/html
跑了一下两个月之前写的项目,结果出现: 是因为Filter过滤器误伤到了css,注释掉就好了.
- CSS文件未加载浏览器报警告:Resource interpreted as Stylesheet but transferred with MIME type text/html...
JavaWeb项目中CSS样式丢失 问题:bootstrap.css未完成加载,但响应正常 错误定位:filter过滤器写了一句response.setContentType("text/h ...
- Resource interpreted as Stylesheet but transferred with MIME type application/x-css
用tornado做了一个简单的页面.结果页面中的css被加载了,但是没有效果.用谷歌浏览器调试,说是Resource interpreted as Stylesheet but transferred ...
- easyui提交form数据显示Resource interpreted as Document but transferred with MIME type application/json问题
今天在用easyui写一个提交表单数据时候,碰到了浏览器提示Resource interpreted as Document but transferred with MIME type applic ...
- 发邮件抛异常。no object DCH for MIME type text/plain; charset=UTF-8
在进行发邮件的时候抛出的这个异常: IOException while sending message; nested exception is: javax.activation.Unsupport ...
- 谷歌空间从服务器检索信息时出错,谷歌,火狐提示来自http://xxx.com/file的资源已被阻止,因为 MIME 类型(text/plain)不匹配(X-Content-Type-Opt...
在使用ueditor编辑的过程中无法上传图片,谷歌火狐浏览器提示Cross-Origin Read Blocking (CORB) blocked cross-origin response http ...
最新文章
- JavaScript(3)之——对象的属性描述符
- alias提升效率工具
- DNN 4.6.2的中文语言包
- 简单表单提交php教程,PHP 表单数据提交与接收 超级简单《SSS教程 10》
- 实现复选框的单选效果
- Git--版本管理的使用及理解
- 哪里找电商素材模板?
- python打印文档添加条码_12行代码教会你用python读excel文件,提取数据,生成条形码...
- c#:浅克隆和深克隆,序列化和反序列化
- fanuc系统服务器连接,FANUC IO LINK i地址分配操作方法
- 转载-MATLAB中将数据写入TXT文本文档中
- 计算机运维项目管理,工程项目管理软件的运维分为几个阶段
- Android可拖动对话框Dialog
- Asterisk增加g729编码支持
- vue面试五之vue修饰符中 .lazy 等用法、Vue v2.4中新增的$attrs及$listeners属性的使用、v-once 的使用场景、vue组件里的定时器该如何销毁、vue海量数据优化等
- IT博客大赛,快来围观!【人艰不拆】
- 建筑BIM的使用场景
- 前端面试--什么是防抖和节流
- mysql配置和优化
- Asterisk模块编写指南
热门文章
- C++Saddleback search鞍背搜索的实现算法(附完整源码)
- C语言实现基数排序Radix sort算法之二(附完整源码)
- c语言实现堆Stack(附完整源码)
- QT的QHostInfo类的使用
- 浅谈C++函数的参数
- redis的基本使用笔记二
- Linear Regression、Logistic Regression、激励函数activation function(relu,sigmoid, tanh, softplus)
- Impala介绍,Impala架构,Impala安装,impala Shell ,分区创建,refresh,load数据,获取数据的元数据
- Elasticsearch概述、ES概念、什么是搜索、全文检索、Elasticsearch功能,什么是distributed document store(来自网络+学习资料)
- 03_MyBatis基本查询,mapper文件的定义,测试代码的编写,resultMap配置返回值,sql片段配置,select标签标签中的内容介绍,配置使用二级缓存,使用别名的数据类型,条件查询ma