非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
Adds a single marker to the browser's 性能 or Waterfall tool. This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events.
You can optionally supply an argument to label the timestamp, and this label will then be shown alongside the marker.
注意: 此特征可用于 Web 工作者 .console.timeStamp(label);
label
Label for the timestamp. Optional.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
timestamp
非标
|
Chrome Yes | Edge 12 | Firefox Yes | IE 11 | Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes | Firefox Android 10 | Opera Android ? | Safari iOS ? | Samsung Internet Android Yes |
完整支持
兼容性未知
实验。期望将来行为有所改变。
非标。预期跨浏览器支持较差。