提交 9b3dd975 编写于 作者: Y yaochaonan

Add console API description

Issue:https://gitee.com/openharmony/docs/issues/new?issue%5Bassignee_id%5D=&issue%5Bmilestone_id%5D=Signed-off-by: Nyaochaonan <yaochaonan@huawei.com>
Change-Id: Ia5138bc6490650cf450eaaeee6306c9bd6b0d4ed
上级 e6b07a68
......@@ -335,4 +335,24 @@ console.timeLog('timer1', value);
// timer1: 365.227ms 17
console.timeEnd('timer1');
// timer1: 513.22ms
```
## console.trace<sup>10+</sup>
trace(...arguments: Object[]): void
打印当前堆栈。
**系统能力:** SystemCapability.Utils.Lang
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ------ | ---- | ----------- |
| arguments | Object | 否 | 需要打印的其他日志。 |
**示例:**
```
console.trace();
console.trace("Show the trace");
```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册