使用jQuery在Internet Explorer上的Javascript错误,但在Firefox上工作正常 [英] Javascript errors on internet explorer with jQuery but working fine on Firefox

查看:81
本文介绍了使用jQuery在Internet Explorer上的Javascript错误,但在Firefox上工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简单的问题我希望有人可以帮助我。

A quick question I'm hoping someone can help me out with.

在firefox上我们的jQuery滑块工作正常,但是在使用Internet Explorer查看时有一些发生javascript错误。该网站是 http://foscam-uk.com/index.php

On firefox our jQuery slider is working perfectly, however on viewing with internet explorer there are some javascript errors occurring. The website is http://foscam-uk.com/index.php

希望有一个可能的解决方案。

Hoping there is a possible solution to this.

亲切的问候,谢谢!

错误:
网页错误详情

Errors: Webpage error details

用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 6.1; WOW64; Trident / 4.0 ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
时间戳:周三,2012年6月6日22:36:43 UTC

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Wed, 6 Jun 2012 22:36:43 UTC

消息:对象不支持此属性或方法
行:5653
字符:9
代码:0
URI: http:// foscam-uk。 com / js / prototype / prototype.js

Message: Object doesn't support this property or method Line: 5653 Char: 9 Code: 0 URI: http://foscam-uk.com/js/prototype/prototype.js

消息:对象不支持此属性或方法
行:5988
字符:5
代码:0
URI: http:// foscam -u k.com/js/prototype/prototype.js

Message: Object doesn't support this property or method Line: 5988 Char: 5 Code: 0 URI: http://foscam-uk.com/js/prototype/prototype.js

消息:对象不支持此属性或方法
行:2
Char:5
代码:0
URI: http://foscam-uk.com/skin/frontend/default/theme316/js/scripts.js

Message: Object doesn't support this property or method Line: 2 Char: 5 Code: 0 URI: http://foscam-uk.com/skin/frontend/default/theme316/js/scripts.js

消息:对象没有' t支持这个属性或方法
行:5736
字符:7
代码:0
URI: http://foscam-uk.com/js/prototype/prototype.js

Message: Object doesn't support this property or method Line: 5736 Char: 7 Code: 0 URI: http://foscam-uk.com/js/prototype/prototype.js

消息:对象不支持此属性或方法
行:5988
字符:5
代码:0
URI: http://foscam-uk.com/js/prototype/prototype.js

Message: Object doesn't support this property or method Line: 5988 Char: 5 Code: 0 URI: http://foscam-uk.com/js/prototype/prototype.js

消息:对象不支持此属性或方法
行:73
字符:11
代码:0
URI: http://foscam-uk.com/index.php

Message: Object doesn't support this property or method Line: 73 Char: 11 Code: 0 URI: http://foscam-uk.com/index.php

推荐答案

IE有一些限制CSS和JS文件的数量。 (约30)。我没有计算,但似乎你有大量的JS和CSS文件引用。如果你超过这个IE基本上停止下载脚本或CSS文件。您可以使用Fiddler自行验证。

IE has some limitations on number of CSS and JS files. (Around 30). I didn't count but seems like you have tons of JS and css file references. If you exceed this IE basically stop downloading the script or css file. You can verify it yourself by using Fiddler.

尝试使用压缩工具将它们压缩为单个文件(例如: http://developer.yahoo.com/yui/compressor/

Try to compact them to single file with compressor tools (ex: http://developer.yahoo.com/yui/compressor/ )

这篇关于使用jQuery在Internet Explorer上的Javascript错误,但在Firefox上工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆