From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/performance/tojson/index.html | 66 ++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 files/ja/web/api/performance/tojson/index.html (limited to 'files/ja/web/api/performance/tojson') diff --git a/files/ja/web/api/performance/tojson/index.html b/files/ja/web/api/performance/tojson/index.html new file mode 100644 index 0000000000..0ced57f826 --- /dev/null +++ b/files/ja/web/api/performance/tojson/index.html @@ -0,0 +1,66 @@ +--- +title: performance.toJSON() +slug: Web/API/Performance/toJSON +tags: + - API + - パフォーマンス + - メソッド + - リファレンス +translation_of: Web/API/Performance/toJSON +--- +
{{APIRef("High Resolution Timing")}}
+ +

{{domxref("Performance")}} インターフェイスの toJSON() メソッドは標準のシリアライザです。パフォーマンスオブジェクトのプロパティの JSON 表現を返します。

+ +

{{availableinworkers}}

+ +

構文

+ +
myPerf = performance.toJSON()
+
+ +

引数

+ +
+
なし
+
 
+
+ +

戻り値

+ +
+
myPerf
+
{{domxref("Performance")}} オブジェクトのシリアル化である JSON オブジェクト
+
+ +

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

仕様

+ + + + + + + + + + + + + + +
仕様書ステータスコメント
{{SpecName('Highres Time Level 2', '#dom-performance-tojson', 'toJSON() serializer')}}{{Spec2('Highres Time Level 2')}}toJson()を定義します。
+ +

ブラウザの互換性

+ +
+ + +

{{Compat("api.Performance.toJSON")}}

+
-- cgit v1.2.3-54-g00ecf