[英]IE9 - Mime-type mismatch - Object doesn't support property
I'm playing around with a JQuery plugin called JRumble: http://jackrugile.com/jrumble/ 我在玩一个名为JRumble的JQuery插件: http ://jackrugile.com/jrumble/
I setup a simple fiddle to test: http://jsfiddle.net/phillipkregg/4LP65/6/ 我设置了一个简单的小提琴进行测试: http : //jsfiddle.net/phillipkregg/4LP65/6/
You can see that the plugin is working fine in Chrome and Firefox, but on IE9 I am getting some errors. 您可以看到该插件在Chrome和Firefox中运行良好,但是在IE9上却出现了一些错误。
Took a screenshot of the IE Developers tool to show what it is referring to: 截取了IE Developers工具的屏幕截图,以显示其所指:
I copied the text in the console just in case that image is hard to read: 我在控制台中复制了文本,以防图像难以阅读:
HTML1115: X-UA-Compatible META tag ('IE=EmulateIE7') ignored because document mode is already finalized.
4
HTML1115: X-UA-Compatible META tag ('IE=EmulateIE7') ignored because document mode is already finalized.
4
HTML1115: X-UA-Compatible META tag ('IE=EmulateIE7') ignored because document mode is already finalized.
4
SEC7112: Script from https://raw.github.com/jackrugile/jRumble/master/demo/js/jquery.jrumble.1.3.min.js was blocked due to mime type mismatch
show
SCRIPT438: Object doesn't support property or method 'jrumble'
show, line 26 character 2
When I looked up issues with Object doesn't support property or method 'jrumble'
, some of the solutions suggested that this can be caused by an id or class name that is the same as a JavaScript variable name. 当我查找Object doesn't support property or method 'jrumble'
,一些解决方案建议这可能是由与JavaScript变量名相同的id或类名引起的。 However, there are no conflicting names in my simple example and it is still not working in IE. 但是,在我的简单示例中没有冲突的名称,并且在IE中仍然无法正常工作。
Just from looking at the console, it seems the issue might be a mime-type mismatch that is preventing JRumble from being seen by IE. 仅从控制台来看,问题似乎可能是导致IE无法看到JRumble的mime类型不匹配。
Is this indeed the problem? 这确实是问题吗? Does anyone know how to go about getting around this issue? 有谁知道如何解决这个问题?
Thanks! 谢谢!
To further troubleshoot this, go to the Network tab, start capturing, then reload the page. 要对此进行进一步的故障排除,请转到“网络”标签,开始捕获,然后重新加载页面。 Find the script and go to its detailed view. 查找脚本并转到其详细视图。 Check the content-type
response header and see what it is. 检查content-type
响应头,看看它是什么。
This problem can be circumvented by serving the file from your own server with the correct headers. 通过使用正确的标头从您自己的服务器提供文件,可以避免此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.