开发者

What does the firebug error $( mean? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit开发者_如何学JAVA the help center. Closed 9 years ago.

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?


As Paul in the comments has suggested as well....you've spelled empty incorrectly many times in your code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜