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

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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome No support NoEdge Full support YesFirefox Full support 25IE ? Opera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile Full support YesFirefox Android Full support 25Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

文档标签和贡献者

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