gpt4 book ai didi

javascript - jsgauge - setValue 在 Chrome 中提供非法调用

转载 作者:行者123 更新时间:2023-11-29 22:26:28 25 4
gpt4 key购买 nike

我正在使用 jsgauge初始化为:

$('#gauge').gauge('init');

如果我尝试调用

$('#gauge').gauge('setValue', 50);

有了 Chrome,我得到了

Uncaught TypeError: Illegal invocation

但它适用于 Firefox 和 IE9。
你知道为什么吗?

最佳答案

找到这个:

Uncaught TypeError: Illegal invocation

由于 jquery.qtip.js 的第 49 行,这发生在 Google Chrome 12.0.742.100 中,内容如下:

if(console){
(console.warn || console.log)(Array.prototype.slice.call(arguments));
}

将中间行更改为 console.warn(Array.prototype.slice.call(arguments)); 按预期在 chrome 中工作。

这对那个人有用 here

关于javascript - jsgauge - setValue 在 Chrome 中提供非法调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9114903/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com