console
接口的
trace()
method outputs a stack trace to the
Web 控制台
.
见
堆栈跟踪
在
console
documentation for details and examples.
console.trace( [...any, ...data ]);
...
any
, ...
data
可选
console.log()
方法。
function foo() {
function bar() {
console.trace();
}
bar();
}
foo();
In the console, the following trace will be displayed:
bar foo <anonymous>
| 规范 | 状态 | 注释 |
|---|---|---|
|
控制台 API
The definition of 'console.trace()' in that specification. |
实时标准 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
trace
|
Chrome 1 | Edge 12 | Firefox 10 | IE 11 | Opera 11 | Safari 4 | WebView Android 1 | Chrome Android 18 | Firefox Android 10 | Opera Android 11 | Safari iOS 3.2 | Samsung Internet Android 1.0 |
完整支持