+
(string concatenation operator) with object will call the toString
method on the object and a string will be returned.
So, '' + object
is equivalent to object.toString()
. And toString
on object returns "[object Object]"
.
With ,
the object is passed as separate argument to the log method.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…