【发布时间】:2010-12-06 19:36:08
【问题描述】:
我在 IE8 中遇到此错误。有人见过这个吗?
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)
Timestamp: Mon, 6 Dec 2010 19:31:00 UTC
Message: Array object expected
Line: 7
Char: 6559
Code: 0
URI: http://ideacity.smallparade.com/js/fonts/cufon-yui.js
【问题讨论】:
-
发布一些代码与错误消息一起怎么样?它在其他浏览器上是否有效?
-
适用于其他浏览器。我从使用 YUI 版本切换到未压缩文件并将其缩小到第 505 行,即:
this.add = function(key, args) { map[key] = list.push(args) - 1; }; -
进一步缩小范围,发现当我调用它时会发生这种情况:
Cufon.replace($$('#section-tagline p'), {}, false);。这是因为$$('#section-tagline p')经常使用 Javascript 更新。
标签: javascript cufon