var util = require('util');
function Person (){
this.name = 'Nemo';
this.toString = function (){
return this.name;
}
}
var obj = new Person ();
console.log(util.inspect(obj,true,2,true));
本文标签
nodejs
nodejs