如何处理ie8 jquery对象不支持此属性或方法错误? [英] How to deal with ie8 jquery object doesn't support this property or method Error?

查看:1083
本文介绍了如何处理ie8 jquery对象不支持此属性或方法错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这并不表示我的javascript代码中有任何错误,但是在下载的jquery.js文件中,这是一个重命名的缩小jquery 1.3.2文件。

This doesn't indicate any error in my javascript code, but in the downloaded jquery.js file, that is a renamed minified jquery 1.3.2 file.

我正在测试一些js代码,在IE8中,它在firefox和谷歌浏览器中100%工作,然后将其推送到生产服务器。

I am testing some js code, in IE8 that works 100% in firefox and google chrome, before rolling it to production server.

但是jquery库本身似乎有问题在IE8中。

But the jquery library itself seems to have issues inside IE8.

我甚至尝试下载1.3.2 jquery的新副本,并使用它而不是缩小版本,它仍然出错。

I even tried downloading a new copy of 1.3.2 jquery, and using that instead of the minified version, and it still errors out.

然后我尝试使用code.jquery.com上托管的cdn,它甚至在让我的代码工作或不工作之前仍然出错。

Then I tried using a the cdn hosted on at code.jquery.com, and it still errored out before even getting to letting my code work or not work.

它似乎在IE8中部分工作,但我们的开发服务器上的其他jquery部分工作,并且继续重复,对象不支持此属性或方法

It appears to partially work in IE8, but other jquery on our dev server partially works, and keep's re-iterating, "Object doesn't support this property or method"

是否有特定版本的jquery在IE8中效果最好?至少我可以在IE8中看到我的代码是否存在问题?

Is there a specific version of jquery that works best in IE8? At least so I can see if there is an issue with my code or not in IE8?

或者是否有一个在IE8中不起作用的jquery函数列表?

Or is there a list of jquery functions that don't work in IE8?

PS此外,我考虑升级到IE9,看看是否有相同的问题,但你无法下载IE9,对于WinXP,这很糟糕。我只是喜欢WinXP,升级的可能性很小。在我使用XP之前,我在我的工作电脑上安装了Vista,这真的很糟糕。

P.S. Also, I considered upgrading to IE9, to see if that had the same issue, but you can't download IE9, for WinXP, which sucks. I just like WinXP, and there's very little chance of upgrading. Before I had XP, I had Vista on my work pc, which really tanked.

很抱歉,只是试图让这段代码正常工作并且没有错误......

Sorry for little vent, just trying to get this code working and error free...

谢谢。

来自评论

<!--- Include jQuery --->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" charset="utf-8"></script> 


推荐答案

当我使用xxx时,我遇到了这个问题。 trim()而不是$ .trim(xxx)。一旦我换了这个问题就消失了。

I was getting this prob when I was using xxx.trim() instead of $.trim(xxx). Once I switched this prob went away.

这篇关于如何处理ie8 jquery对象不支持此属性或方法错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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