lovespring lovespring - 1 year ago 143
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.

Answer Source

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]


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download