【问题标题】:Resource interpreted as Stylesheet but transferred with MIME type text/plain资源解释为样式表,但使用 MIME 类型 text/plain 传输
【发布时间】:2013-06-17 10:34:59
【问题描述】:

我知道很多人以前都问过这个问题,但给出的答案都没有帮助我。我使用SVN 更新了一个我一直在与其他人合作的项目,突然间我开始收到这些错误:

Resource interpreted as Stylesheet but transferred with MIME type text/plain:  

Uncaught ReferenceError: jQuery is not defined 

Uncaught ReferenceError: $ is not defined 

我从项目的SVN 签出了一个干净的版本,但我仍然遇到同样的错误。奇怪的是,该项目在我的任何浏览器中都无法运行,但在我同事的机器上运行良好。

我尝试更改文件权限以及regedit 中的ContentType,但没有成功。我不认为这是我的代码的问题,因为它与我的同事拥有的相同并且对他们有用。

【问题讨论】:

    标签: iis mime-types referenceerror


    【解决方案1】:

    我的问题是,由于某种原因,我的 IIS 管理器没有 MIME 类型引用,所以我只是添加了它并且它起作用了!

    【讨论】:

      猜你喜欢
      • 2018-03-19
      • 2020-05-06
      • 2012-05-20
      • 2017-06-03
      • 2014-11-19
      • 2014-05-26
      • 2013-05-04
      • 2011-12-13
      • 2017-10-12
      相关资源
      最近更新 更多