feat: 新增object打印方法

This commit is contained in:
coding 2017-11-30 05:24:00 +00:00
parent d269823f07
commit 5ac394cdbb

View File

@ -33,6 +33,11 @@
console.debug = global.debug ? console.debug : global.noop;
console.sender = console.info;
console.console = console.info;
console.object = function (obj) {
for (var i in obj) {
console.log(i, '=>', obj[i])
}
}
console.ex = function (ex) {
this.console('§4' + ex);
var track = ex.getStackTrace();