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 

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-11-13
  • 2021-11-20
  • 2021-08-12
猜你喜欢
  • 2021-06-21
  • 2021-10-22
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-05-18
相关资源
相似解决方案