我用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:相关推荐

  1. 关于错误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 ...

  2. Resource interpreted as Stylesheet but transferred with MIME type text/html: “**.jsp“,主要因为拦截器将所有资源拦截

    1. 问题描述 网页内容正常加载,但是没有样式,而且样式路径是正确的,F12打开控制台看到提示"Resource interpreted as Stylesheet but transfer ...

  3. 【SpringBoot】浏览器报错Resource interpreted as Stylesheet but transferred with MIME type text/html

    CSS 样式不能正常加载 发现页面的样式没有显示,报错信息如下: Resource interpreted as Stylesheet but transferred with MIME type t ...

  4. 【JavaWeb】已解决:Resource interpreted as Stylesheet but transferred with MIME type text/html

    跑了一下两个月之前写的项目,结果出现: 是因为Filter过滤器误伤到了css,注释掉就好了.

  5. CSS文件未加载浏览器报警告:Resource interpreted as Stylesheet but transferred with MIME type text/html...

    JavaWeb项目中CSS样式丢失 问题:bootstrap.css未完成加载,但响应正常 错误定位:filter过滤器写了一句response.setContentType("text/h ...

  6. Resource interpreted as Stylesheet but transferred with MIME type application/x-css

    用tornado做了一个简单的页面.结果页面中的css被加载了,但是没有效果.用谷歌浏览器调试,说是Resource interpreted as Stylesheet but transferred ...

  7. easyui提交form数据显示Resource interpreted as Document but transferred with MIME type application/json问题

    今天在用easyui写一个提交表单数据时候,碰到了浏览器提示Resource interpreted as Document but transferred with MIME type applic ...

  8. 发邮件抛异常。no object DCH for MIME type text/plain; charset=UTF-8

    在进行发邮件的时候抛出的这个异常: IOException while sending message; nested exception is: javax.activation.Unsupport ...

  9. 谷歌空间从服务器检索信息时出错,谷歌,火狐提示来自http://xxx.com/file的资源已被阻止,因为 MIME 类型(text/plain)不匹配(X-Content-Type-Opt...

    在使用ueditor编辑的过程中无法上传图片,谷歌火狐浏览器提示Cross-Origin Read Blocking (CORB) blocked cross-origin response http ...

最新文章

  1. JavaScript(3)之——对象的属性描述符
  2. alias提升效率工具
  3. DNN 4.6.2的中文语言包
  4. 简单表单提交php教程,PHP 表单数据提交与接收 超级简单《SSS教程 10》
  5. 实现复选框的单选效果
  6. Git--版本管理的使用及理解
  7. 哪里找电商素材模板?
  8. python打印文档添加条码_12行代码教会你用python读excel文件,提取数据,生成条形码...
  9. c#:浅克隆和深克隆,序列化和反序列化
  10. fanuc系统服务器连接,FANUC IO LINK i地址分配操作方法
  11. 转载-MATLAB中将数据写入TXT文本文档中
  12. 计算机运维项目管理,工程项目管理软件的运维分为几个阶段
  13. Android可拖动对话框Dialog
  14. Asterisk增加g729编码支持
  15. vue面试五之vue修饰符中 .lazy 等用法、Vue v2.4中新增的$attrs及$listeners属性的使用、v-once 的使用场景、vue组件里的定时器该如何销毁、vue海量数据优化等
  16. IT博客大赛,快来围观!【人艰不拆】
  17. 建筑BIM的使用场景
  18. 前端面试--什么是防抖和节流
  19. mysql配置和优化
  20. Asterisk模块编写指南

热门文章

  1. C++Saddleback search鞍背搜索的实现算法(附完整源码)
  2. C语言实现基数排序Radix sort算法之二(附完整源码)
  3. c语言实现堆Stack(附完整源码)
  4. QT的QHostInfo类的使用
  5. 浅谈C++函数的参数
  6. redis的基本使用笔记二
  7. Linear Regression、Logistic Regression、激励函数activation function(relu,sigmoid, tanh, softplus)
  8. Impala介绍,Impala架构,Impala安装,impala Shell ,分区创建,refresh,load数据,获取数据的元数据
  9. Elasticsearch概述、ES概念、什么是搜索、全文检索、Elasticsearch功能,什么是distributed document store(来自网络+学习资料)
  10. 03_MyBatis基本查询,mapper文件的定义,测试代码的编写,resultMap配置返回值,sql片段配置,select标签标签中的内容介绍,配置使用二级缓存,使用别名的数据类型,条件查询ma