lovespring lovespring - 7 months ago 42
Javascript Question

How to show full object in Chrome console?

var functor=function(){



this only show the function part of the functor, cannot show the properties of the functor in console.


Use console.dir() to output a browse-able object you can click through instead of the .toString() version, like this:


Prints a JavaScript representation of the specified object. If the object being logged is an HTML element, then the properties of its DOM representation are printed [1]