function printObject(o) {
var out = '';
for (var p in o) {
out += '\n' + ':: ' + p + '(' + typeof(o[p]) + ') ::' + '\n' + o[p] + '\n';
}
console.log(out);
}
来自: https://gist.github.com/okor/1536669
function printObject(o) {
var out = '';
for (var p in o) {
out += '\n' + ':: ' + p + '(' + typeof(o[p]) + ') ::' + '\n' + o[p] + '\n';
}
console.log(out);
}
来自: https://gist.github.com/okor/1536669