From 5ac394cdbb016a061435ba7285747f2ae221768e Mon Sep 17 00:00:00 2001 From: coding Date: Thu, 30 Nov 2017 05:24:00 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Eobject=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/core/console.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/core/console.js b/src/main/resources/core/console.js index 814f221..a49617e 100644 --- a/src/main/resources/core/console.js +++ b/src/main/resources/core/console.js @@ -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();