gpt4 book ai didi

javascript - wrapper 在 Firebug 中是什么意思?

转载 作者:行者123 更新时间:2023-11-30 10:48:20 25 4
gpt4 key购买 nike

我在这个页面中有一个错误:

http://colombianadederecho.org

通过 Firebug 我得到了这个,但我不明白这意味着什么或如何解决。

wrapper is null
(?)()2 (línea 1)
element = "#menu ul"
items = "#menu li a"
options = Object { widthSliderPx=125, widthSliderOpenPx=185}
Class()mootools.js.php (línea 16)
start()

谢谢

最佳答案

在 Chrome 控制台中,我看到这条消息:

Uncaught TypeError: Cannot call method 'addEvent' of null

这意味着一些 JavaScript 正试图做这样的事情:

var foo = null;
foo.addEvent(...);

也许它正在执行 document.getElementById() 然后(尝试)添加一个事件监听器,但没有找到具有指定 ID 的此类元素。


我的 Chrome 控制台报告了一些可能的行号:

enter image description here

这是 template.js.php 的第 345 行:

var menuFx = new SliderMenu('#menu ul', '#menu li a', { widthSliderPx: YtSettings.widthSliderPx, widthSliderOpenPx: YtSettings.widthSliderOpenPx });

关于javascript - wrapper 在 Firebug 中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7005308/

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