We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

这篇翻译不完整。请帮忙从英语翻译这篇文章

PerformancetoJSON() 方法是一个标准的串行器:它返回一个由 performance 对象各个属性组成的 JSON

Syntax

myPerf = performance.toJSON()

Arguments

None
 

Return value

myPerf
Performance 对象序列化之后转化成的 JSON 对象。

Example

var js;
js = window.performance.toJSON();
console.log("json = " + JSON.stringify(js));

Specifications

Specification Status Comment
High Resolution Time Level 2
toJSON() serializer
Candidate Recommendation Defines toJson().

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
toJSON() 未实现 (Yes) 25.0 (25.0) ? 未实现 未实现
Feature Android Android Webview Edge Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile Chrome for Android
toJSON() 未实现 未实现 (Yes) 25.0 (25.0) 1.2 (25.0) ? 未实现 ? 未实现

文档标签和贡献者

此页面的贡献者: dblate
最后编辑者: dblate,