我在Firefox和Firebug控制台中有很多警告。我不知道该如何处理它们。他们是我的错吗?另外,如何在Firefox中使调试变得清晰有用?
以下是示例:
[11:06:16.845]函数cf并不总是返回值@ http://example.hu/jquery.js:16 [11:06:16.853]函数ce 并不总是返回一个值@ http://example.hu/jquery.js:16 [11:06:16.861]功能bZ 并不总是返回一个值@ http://example.hu/jquery.js:16 [11:06:16.870]测试 等于(==)错误的分配(=)? @ http://example.hu/jquery.js:16 [11:06:16.880]功能M. 并不总是返回一个值@ http://example.hu/jquery.js:16 [11:06:16.889]匿名 函数并不总是返回值@ http://example.hu/jquery.js:16 [11:06:16.921]测试 等于(==)错误的分配(=)? @ http://example.hu/jquery.js:16 [11:06:16.934]匿名 函数并不总是返回值@ http://example.hu/jquery.js:16 [11:06:16.957]测试 等于(==)错误的分配(=)? @ http://example.hu/jquery.js:16 [11:06:16.972]匿名 函数并不总是返回值@ http://example.hu/jquery.js:17 [11:06:16.998]测试 等于(==)错误的分配(=)? @ http://example.hu/jquery.js:17 [11:06:17.012]匿名 函数并不总是返回值@ http://example.hu/jquery.js:17 [11:06:17.035]测试 等于(==)错误的分配(=)? @ http://example.hu/jquery.js:17 [11:06:17.051]匿名 函数并不总是返回值@ http://example.hu/jquery.js:17 [11:06:17.073]测试 等于(==)错误的分配(=)? @ http://example.hu/jquery.js:17 [11:06:17.086]匿名 函数并不总是返回值@ http://example.hu/jquery.js:17 [11:06:17.126]测试 等于(==)错误的分配(=)? @ http://example.hu/jquery.js:18 [11:06:17.153]匿名 函数并不总是返回值@ http://example.hu/jquery.js:18 [11:06:17.175]参考 undefined属性f.valHooks [this] @ http://example.hu/jquery.js:16 [11:06:17.208]参考 未定义的属性a [f.expando] @ http://example.hu/jquery.js:16 [11:06:17.376]参考 未定义的属性a [f.expando] @ http://example.hu/jquery.js:16 [11:06:17.480]参考 未定义的属性a [f.expando] @ http://example.hu/jquery.js:16 [11:06:17.613]参考 未定义的属性f.event.triggered @ http://example.hu/jquery.js:16
reference to undefined property fbs.breakOnDebugCall
[Break On This Error] var hookReturn = d...e, errorInfo, fbs.breakOnDebugCall);
firebu...vice.js (line 1857)
<System>
reference to undefined property a[f.expando]
[Break On This Error] (function(a,b){function cv(a){return f...ndexOf(".")>=0&&(i=h.split("."),h=i.
jquery.js (line 16)
reference to undefined property fbs.breakOnDebugCall
[Break On This Error] return this.breakOnErrors || fbs.breakOnDebugCall;
firebu...vice.js (line 3523)
<System>
reference to undefined property fbs.breakOnDebugCall
[Break On This Error] var hookReturn = d...e, errorInfo, fbs.breakOnDebugCall);
firebu...vice.js (line 1857)
<System>
reference to undefined property a[f.expando]
[Break On This Error] (function(a,b){function cv(a){return f...ndexOf(".")>=0&&(i=h.split("."),h=i.
jquery.js (line 16)
reference to undefined property fbs.breakOnDebugCall
[Break On This Error] return this.breakOnErrors || fbs.breakOnDebugCall;
firebu...vice.js (line 3523)
<System>
reference to undefined property fbs.breakOnDebugCall
[Break On This Error] var hookReturn = d...e, errorInfo, fbs.breakOnDebugCall);
firebu...vice.js (line 1857)
<System>
reference to undefined property a[f.expando]
[Break On This Error] (function(a,b){function cv(a){return f...ndexOf(".")>=0&&(i=h.split("."),h=i.
jquery.js (line 16)
reference to undefined property fbs.breakOnDebugCall
[Break On This Error] return this.breakOnErrors || fbs.breakOnDebugCall;
firebu...vice.js (line 3523)
<System>
reference to undefined property fbs.breakOnDebugCall
[Break On This Error] var hookReturn = d...e, errorInfo, fbs.breakOnDebugCall);
firebu...vice.js (line 1857)
<System>
reference to undefined property a[f.expando]
[Break On This Error] (function(a,b){function cv(a){return f...ndexOf(".")>=0&&(i=h.split("."),h=i.
答案 0 :(得分:7)
如果要避免将其登录到控制台,您可以取消选中Strict Warnings。
答案 1 :(得分:1)
在Firefox下将javascript.options.strict设置为false:config