IE8 CurvyCorners.net Jquery 错误 exec(1...) 为 null 或不是对象

发布于 2024-10-08 12:07:51 字数 1355 浏览 0 评论 0原文

在我正在工作的网站上,我正在使用 CurvyCorners.net jQuery 插件,圆角在 Firefox/safari/ie7 兼容模式下工作...当我在 IE8 中加载页面时,我收到 JS 错误,并且脚本没有执行。有问题的 URL/脚本的链接是: http://tccyclist.com/modx/ index.php?id=16

错误:`

Webpage error details

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; HPNTDF; InfoPath.2; .NET4.0C)
Timestamp: Fri, 17 Dec 2010 18:48:46 UTC


Message: 'exec(...).1' is null or not an object
Line: 33
Char: 39
Code: 0
URI: https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js

`

谷歌搜索让我发现了这一点:

 For those of you using curvycorners.js version 2.0.4 from the zip file and getting an IE8 error 'exec(...).1' is null or not an object ... you may want to check to see if your div has a microsoft.gradient filter on it. This version of the script breaks on line 1 char 13,871...

var n=filter?parseInt(/alpha\(opacity.(\d+)\)/.exec(filter)[1])

...is expecting you have applied an alpha (opacity) filter and breaks if you have applied a gradient! I didn't check this on the beta or SVN (I believe these versions fail silently).

HTH- 

我使用透明的 PNG 作为背景图像,但我不确定如何处理他在那里描述的内容。任何人都可以提供正确方向的指示吗?

On a site I'm working on I'm using the CurvyCorners.net jQuery plugin, rounded corners work in Firefox/safari/ie7 compatibility mode... When I load the page in IE8 I get a JS error and the script does not execute. The link to the URL/Script in question is: http://tccyclist.com/modx/index.php?id=16

The error:`

Webpage error details

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; HPNTDF; InfoPath.2; .NET4.0C)
Timestamp: Fri, 17 Dec 2010 18:48:46 UTC


Message: 'exec(...).1' is null or not an object
Line: 33
Char: 39
Code: 0
URI: https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js

`

A google search brought me to this:

 For those of you using curvycorners.js version 2.0.4 from the zip file and getting an IE8 error 'exec(...).1' is null or not an object ... you may want to check to see if your div has a microsoft.gradient filter on it. This version of the script breaks on line 1 char 13,871...

var n=filter?parseInt(/alpha\(opacity.(\d+)\)/.exec(filter)[1])

...is expecting you have applied an alpha (opacity) filter and breaks if you have applied a gradient! I didn't check this on the beta or SVN (I believe these versions fail silently).

HTH- 

I am using a transparent PNG as the background-image, but I'm not sure how to handle what he's describing in there. Can anyone offer any pointers in the right direction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文