console:timeEnd() 静态方法
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!
概述
停止一个通过 console.time()
启动的计时器
备注: 该方法在使用时不会将输出的时间返回到 js,它只能用于控制台调试。请勿将该方法作为普通计时器或性能数据收集器的一部分。
有关详细信息和示例,请参阅 Timers
备注: 此特性在 Web Worker 中可用。
语法
js
timeEnd()
timeEnd(label)
参数
label
-
需要停止的计时器名字。一旦停止,计时器所经过的时间会被自动输出到控制台。
规范
Specification |
---|
Console # timeend |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
timeEnd() static method |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.