2013-10-24 28 views

回答

3

Firefox的內置Web Console忽略未知控制檯調用而不是拋出異常。所以當正常的呼叫,例如

window.table() 

或正常對象的任何未知的方法,你喜歡的東西:

[20:29:35.381] TypeError: window.table is not a function 

但是:

console.table({foo: 'bar'}) 

剛剛返回undefined沒有做任何事情,即使:

typeof console.table 

回報:

"undefined" 
+0

也許acepting的答案嗎? – Lucio

相關問題