firebug 错误 $( 是什么意思?
通常,当出现问题或无法编译时,Firebug 会给出一半不错的错误消息。但在这种情况下,我只是得到以下内容:
X: $(
$('#' + divName).emtpy();
代码是这样的:
// Some code that sets variable row_entry
// debugger;
$('#' + divName).emtpy();
$('#' + divName).append(row_entry);
当我取消注释调试器并在 Firebug 中查看它时,我可以调用方法:
>>> $('#' + divName)
[tr#row_1]
>>> $('#' + divName).emtpy();
>>> $('#' + divName).append(row_entry);
[tr#row_1]
row_entry 设置正确初始化,这使得网页看起来如我所愿,但 Firebug 在常规执行时抛出此错误,并且当我在调试器测试后恢复代码时,也会发生同样的情况。当 Firebug 未运行时,页面也无法正确加载。
有人可以解释一下发生了什么事吗?
Usually, Firebug gives a half decent error message when something goes wrong or doesn't compile. In this case though, I am simply getting the following:
X: $(
$('#' + divName).emtpy();
The code is something like this:
// Some code that sets variable row_entry
// debugger;
$('#' + divName).emtpy();
$('#' + divName).append(row_entry);
When I uncomment the debugger, and look at it in Firebug, I can call the methods:
>>> $('#' + divName)
[tr#row_1]
>>> $('#' + divName).emtpy();
>>> $('#' + divName).append(row_entry);
[tr#row_1]
The row_entry is set initialized correctly, and this makes the webpage look as I desire, but Firebug throws this error on regular execution, and the same thing happens when I resume the code after the debugger testing. The page also does not load correctly when Firebug is not running.
Can someone please explain what is going on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如保罗在评论中所建议的那样......您在代码中多次错误地拼写了empty。
As Paul in the comments has suggested as well....you've spelled empty incorrectly many times in your code.