即时得到消息"资源跨preTED为脚本,但使用MIME类型text / html&QUOT转让; [英] Im getting the message "resource interpreted as script but transferred with MIME type text/html"
问题描述
我的JS文件没有得到加载并即时得到。可能我知道我可以解决这个问题的信息PTED为脚本,但使用MIME类型text / html转移资源跨$ P $。
My js files are not getting loaded and Im getting the message "resource interpreted as script but transferred with MIME type text/html".May I know how I can solve this issue.
谢谢, 巴拉吉
推荐答案
这听起来更像是一个比一个JavaScript的问题一个服务器的问题。
This sounds more like a server issue than a javascript issue.
这似乎很奇怪的是,所有的服务器将不具有的.js文件设置一个MIME类型。 执行文件的扩展名不同?
It seems rather odd that any server would not have a MIME type set for .js files. Do the files have a different extension?
也许你的HTML需要进行修改,以更具体?
Perhaps your HTML needs to be modified to be more specific?
<脚本类型=文/ JavaScript的LANGUAGE =JavaScript的SRC =functions.js>< / SCRIPT>
您将不得不提供更多的信息,以获得更具体的回答你的问题。
You'll have to provide a bit more information to get a more specific answer to your question.
这篇关于即时得到消息"资源跨preTED为脚本,但使用MIME类型text / html&QUOT转让;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!