diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-02-22 01:23:02 +0900 |
|---|---|---|
| committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-03-02 23:38:54 +0900 |
| commit | 6d7541703a194e85ad26932811abf9e69c981426 (patch) | |
| tree | e5ce548b7cf0c29d65cf523b1b4a6f512b8d0ddc /files/ja/web/api/performance/tojson | |
| parent | 96d2945591771f242a2e0dd50be77d5b2f872885 (diff) | |
| download | translated-content-6d7541703a194e85ad26932811abf9e69c981426.tar.gz translated-content-6d7541703a194e85ad26932811abf9e69c981426.tar.bz2 translated-content-6d7541703a194e85ad26932811abf9e69c981426.zip | |
2021/09/15 時点の英語版に同期
2021/09/15 時点の英語版に同期
2021/09/15 時点の英語版に同期
Diffstat (limited to 'files/ja/web/api/performance/tojson')
| -rw-r--r-- | files/ja/web/api/performance/tojson/index.md | 62 |
1 files changed, 23 insertions, 39 deletions
diff --git a/files/ja/web/api/performance/tojson/index.md b/files/ja/web/api/performance/tojson/index.md index 16ed75efdc..e45210fcf3 100644 --- a/files/ja/web/api/performance/tojson/index.md +++ b/files/ja/web/api/performance/tojson/index.md @@ -3,62 +3,46 @@ title: performance.toJSON() slug: Web/API/Performance/toJSON tags: - API - - パフォーマンス - メソッド + - パフォーマンス - リファレンス +browser-compat: api.Performance.toJSON translation_of: Web/API/Performance/toJSON --- -<div>{{APIRef("High Resolution Timing")}}</div> +{{APIRef("High Resolution Timing")}} -<p>{{domxref("Performance")}} インターフェイスの <strong><code>toJSON()</code></strong> メソッドは標準のシリアライザです。パフォーマンスオブジェクトのプロパティの JSON 表現を返します。</p> +**`toJSON()`** は {{domxref("Performance")}} インターフェイスのメソッドで、標準のシリアライザーです。パフォーマンスオブジェクトのプロパティの JSON 表現を返します。 -<p>{{availableinworkers}}</p> +{{availableinworkers}} -<h2 id="構文">構文</h2> +## 構文 -<pre class="syntaxbox">myPerf = performance.toJSON() -</pre> +```js +myPerf = performance.toJSON() +``` -<h3 id="引数">引数</h3> +### 引数 -<dl> - <dt>なし</dt> - <dd> </dd> -</dl> +- なし + - : -<h3 id="戻り値">戻り値</h3> +### 返値 -<dl> - <dt>myPerf</dt> - <dd>{{domxref("Performance")}} オブジェクトのシリアル化である JSON オブジェクト</dd> -</dl> +- myPerf + - : {{domxref("Performance")}} オブジェクトをシリアライズした JSON オブジェクト。 -<h2 id="例">例</h2> +## 例 -<pre class="brush: js">var js; +```js +var js; js = window.performance.toJSON(); console.log("json = " + JSON.stringify(js)); -</pre> +``` -<h2 id="仕様">仕様</h2> +## 仕様書 -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">仕様書</th> - <th scope="col">ステータス</th> - <th scope="col">コメント</th> - </tr> - <tr> - <td>{{SpecName('Highres Time Level 2', '#dom-performance-tojson', 'toJSON() serializer')}}</td> - <td>{{Spec2('Highres Time Level 2')}}</td> - <td><code>toJson()</code>を定義します。</td> - </tr> - </tbody> -</table> +{{Specifications}} -<h2 id="ブラウザの互換性">ブラウザの互換性</h2> +## ブラウザーの互換性 -<div> -<p>{{Compat("api.Performance.toJSON")}}</p> -</div> +{{Compat}} |
