简体   繁体   English

Internet Explorer Javascript错误

[英]Internet Explorer Javascript Error

Trying to work out why something isn't working in Internet Explorer 8 or lower, it appears to work in all other browsers. 试图弄清为什么某些东西不能在Internet Explorer 8或更低版本中工作,它似乎在所有其他浏览器中都能工作。

The errors given by Internet Explorer 8 are: Internet Explorer 8给出的错误是:

Webpage error details 网页错误详细信息

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) Timestamp: Fri, 4 Nov 2011 15:18:12 UTC 用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 5.1; Trident / 4.0)时间戳:星期五,2011年11月4日15:18:12 UTC

Message: Object doesn't support this property or method Line: 17 Char: 17840 Code: 0 URI: client.bytewire.co.uk/marblesolar/wp-includes/js/jquery/jquery.js?ver=1.6.1 消息:对象不支持此属性或方法行:17字符:17840代码:0 URI:client.bytewire.co.uk/marblesolar/wp-includes/js/jquery/jquery.js?ver = 1.6.1

Message: Invalid argument. 消息:无效的参数。 Line: 30 Char: 1208 Code: 0 URI: http://maps.gstatic.com/intl/en_us/mapfiles/api-3/6/11/main.js 行:30字符:1208代码:0 URI: http : //maps.gstatic.com/intl/zh_CN/mapfiles/api-3/6/11/main.js

To replicate the error yourself 自己复制错误

Any help would be greatly appreciated. 任何帮助将不胜感激。

Elliot 艾略特

<meta http-equiv="X-UA-Compatible" content="IE=8;FF=3;OtherUA=4" />

put this into your head section it should resolve problem with javascript, now you are getting error because its not possible to get offsetWidth and height in quirks mode for ie 把它放到你的头部这应该可以解决javascript的问题,现在出现错误,因为在怪癖模式下无法获得offsetWidth和height,例如

I think this will help you, it helped me. 我认为这会帮助您,对我有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM