feat: 新增object打印方法
This commit is contained in:
parent
d269823f07
commit
5ac394cdbb
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user