0

当我运行我的网站时,此警告/错误不断出现在 Chrome 的控制台中。

Resource interpreted as Script but transferred with MIME type text/x-js

我尝试将此添加到我的脚本标签中,但它没有给出任何爱!

<script type="text/javascript">
4

1 回答 1

1
  • 输入regedit.exe
  • 在 HKEY_CLASSES_ROOT 中找到 .js 文件夹
  • 右键单击“内容类型”
  • 将值数据修改为“text/javascript”,而不是“text/plain”
于 2013-06-05T03:43:19.503 回答