当没有任何服务器访问时,甚至会出现此问题。index.html 只是访问一些本地存储的 JavaScript 文件:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="timeline.js"></script>
</head>
<body>
<p>The Body</p>
</body>
</html>
在浏览器中显示时,Chrome 会说:
Resource interpreted as Script but transferred with MIME type text/plain:
file:///D:/Workspace/timeline/examples/engel-timeline/timelineReusable.v0.0/timeline.js".
如何抑制此消息?(添加“内容类型”没有帮助!)