From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- .../performanceresourcetiming/tojson/index.html | 67 ---------------------- .../api/performanceresourcetiming/tojson/index.md | 67 ++++++++++++++++++++++ 2 files changed, 67 insertions(+), 67 deletions(-) delete mode 100644 files/fr/web/api/performanceresourcetiming/tojson/index.html create mode 100644 files/fr/web/api/performanceresourcetiming/tojson/index.md (limited to 'files/fr/web/api/performanceresourcetiming/tojson') diff --git a/files/fr/web/api/performanceresourcetiming/tojson/index.html b/files/fr/web/api/performanceresourcetiming/tojson/index.html deleted file mode 100644 index 8385dcbafa..0000000000 --- a/files/fr/web/api/performanceresourcetiming/tojson/index.html +++ /dev/null @@ -1,67 +0,0 @@ ---- -title: PerformanceResourceTiming.toJSON() -slug: Web/API/PerformanceResourceTiming/toJSON -tags: - - API - - Method - - Méthode - - Reference - - Performance Web - - Resource Timing API - - toJSON() -translation_of: Web/API/PerformanceResourceTiming/toJSON ---- -
{{APIRef("Resource Timing API")}}
- -

La méthode toJSON() est un sérialiseur qui retourne une représentation JSON de l'objet PerformanceResourceTiming.

- -

Syntaxe

- -
let json = resourcePerfEntry.toJSON();
- -

Arguments

- -

Aucun.

- -

Valeur de retour

- -
-
json
-
Un objet JSON qui est la sérialisation de l'objet PerformanceResourceTiming comme une carte avec des entrées de l'interface héritée la plus proche et avec des entrées pour chacun des attributs sérialisables.
-
- -

Exemple

- -
// Obtient une entrée de performance des ressources
-let perfEntries = performance.getEntriesByType("resource");
-let entry = perfEntries[0];
-
-// Récupère le JSON et l'enregistre
-let json = entry.toJSON();
-let s = JSON.stringify(json);
-console.log("PerformanceEntry.toJSON = " + s);
-
- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Resource Timing 2', '#dom-performanceresourcetiming-tojson', - 'toJSON')}}{{Spec2('Resource Timing 2')}}
- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/api/performanceresourcetiming/tojson/index.md b/files/fr/web/api/performanceresourcetiming/tojson/index.md new file mode 100644 index 0000000000..8385dcbafa --- /dev/null +++ b/files/fr/web/api/performanceresourcetiming/tojson/index.md @@ -0,0 +1,67 @@ +--- +title: PerformanceResourceTiming.toJSON() +slug: Web/API/PerformanceResourceTiming/toJSON +tags: + - API + - Method + - Méthode + - Reference + - Performance Web + - Resource Timing API + - toJSON() +translation_of: Web/API/PerformanceResourceTiming/toJSON +--- +
{{APIRef("Resource Timing API")}}
+ +

La méthode toJSON() est un sérialiseur qui retourne une représentation JSON de l'objet PerformanceResourceTiming.

+ +

Syntaxe

+ +
let json = resourcePerfEntry.toJSON();
+ +

Arguments

+ +

Aucun.

+ +

Valeur de retour

+ +
+
json
+
Un objet JSON qui est la sérialisation de l'objet PerformanceResourceTiming comme une carte avec des entrées de l'interface héritée la plus proche et avec des entrées pour chacun des attributs sérialisables.
+
+ +

Exemple

+ +
// Obtient une entrée de performance des ressources
+let perfEntries = performance.getEntriesByType("resource");
+let entry = perfEntries[0];
+
+// Récupère le JSON et l'enregistre
+let json = entry.toJSON();
+let s = JSON.stringify(json);
+console.log("PerformanceEntry.toJSON = " + s);
+
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Resource Timing 2', '#dom-performanceresourcetiming-tojson', + 'toJSON')}}{{Spec2('Resource Timing 2')}}
+ +

Compatibilité des navigateurs

+ +

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

-- cgit v1.2.3-54-g00ecf