interface Console { assert(condition,
...args): void; debug(...args): void; dir(obj,
options?): void; error(...args): void; info(...args): void; log(...args): void; time(label): void; timeEnd(label): void; trace(...args): void; warn(...args): void; } Methods
assert
- assert(condition, ...args): void
Parameters
- condition: boolean
Rest
...args: any[]
Returns void
debug
- debug(...args): void
Returns void
dir
- dir(obj, options?): void
Parameters
- obj: any
Optional
options: {
colors?: boolean;
depth?: number;
showHidden?: boolean;
}Optional
colors?: boolean
Optional
depth?: number
Optional
showHidden?: boolean
Returns void
error
- error(...args): void
Returns void
info
- info(...args): void
Returns void
log
- log(...args): void
Returns void
time
- time(label): void
Returns void
timeEnd
- timeEnd(label): void
Returns void
trace
- trace(...args): void
Returns void
warn
- warn(...args): void
Returns void
基于平台是SaaS化平台,目前只实现log/debug/info/warn/error等几个基本的接口 ,不具备node.js下的console对象的全部功能。