简体   繁体   English

IE9-Mime类型不匹配-对象不支持属性

[英]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.

相关问题 IE9:对象不支持属性“是” - IE9: Object doesn't support the property “is” 对象不支持IE9中的属性或方法'append' - Object doesn't support property or method 'append' in IE9 IE9错误:对象不支持属性或方法“ setAttribute” - IE9 error: Object doesn't support property or method 'setAttribute' 对象不支持此属性或方法 -- 在 IE9 中调用 Applet - Object doesn't support this property or method -- Calling an Applet in IE9 TypeError:对象在IE8 / IE9中不支持此属性或方法 - TypeError: Object doesn't support this property or method in IE8 / IE9 对象不支持IE9和IE8中的属性或方法“切换” - Object doesn't support property or method 'Toggle' in IE9 and IE8 ExtJs4 + IE9 = Object不支持属性或方法'createContextualFragment' - ExtJs4 + IE9 = Object doesn't support property or method 'createContextualFragment' SCRIPT438:对象不支持属性或方法“创建”-IE9 - SCRIPT438: Object doesn't support property or method 'create' - IE9 Angular 4 IE9文件上传Script438:对象不支持属性或方法“应用” - Angular 4 IE9 file upload Script438:Object doesn't support property or method 'apply' Fineuploader IE9 CORS iframe错误“对象不支持属性或方法'_parseJsonResponse' - Fineuploader IE9 CORS iframe error "object doesn't support property or method '_parseJsonResponse'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM