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/fr/web/api/console/info/index.html | 138 +++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 files/fr/web/api/console/info/index.html (limited to 'files/fr/web/api/console/info/index.html') diff --git a/files/fr/web/api/console/info/index.html b/files/fr/web/api/console/info/index.html new file mode 100644 index 0000000000..b66d16dddb --- /dev/null +++ b/files/fr/web/api/console/info/index.html @@ -0,0 +1,138 @@ +--- +title: Console.info() +slug: Web/API/Console/info +tags: + - API + - Debugging + - Method + - NeedsBrowserCompatibility + - web console +translation_of: Web/API/Console/info +--- +

{{ APIRef("Console API") }}{{Non-standard_header}}

+ +

Résumé

+ +

Affiche un message informatif dans la console du navigateur. Dans Firefox et Chrome, une petit icône de i s'affiche devant le message.

+ +

{{AvailableInWorkers}}

+ +

Syntaxe

+ +
console.info(obj1 [, obj2, ..., objN]);
+console.info(msg [, subst1, ..., substN]);
+
+ +

Paramètres

+ +
+
obj1 ... objN
+
Une liste d'objets JavaScript à afficher. La représentation, en chaîne de caractéres, de chacun de ces objets est affichée dans l'ordre de la liste.
+
msg
+
Une chaîne de caractères JavaScript contenant zéro ou plusieurs subdivisions de chaîne de caractères.
+
subst1 ... substN
+
Une liste d'objets JavaScript qui remplace les chaînes de caractéres de msg. Cela vous donne plus de contrôle sur le format de sortie.
+
+ +

Voir Afficher du texte sur la console dans la documentation de {{ domxref("console") }} pour plus de détails.

+ +

Spécification

+ +

Console Object API

+ +

Compatibilité des navigateurs

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatVersionUnknown() }}{{ CompatGeckoDesktop("2.0") }}8{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
Substitution strings{{ CompatUnknown() }}{{ CompatGeckoDesktop("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Information icon{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatNo() }}
Available in workers{{ CompatUnknown() }}{{ CompatGeckoDesktop("38.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatGeckoMobile("2.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Substitution strings{{ CompatUnknown() }}{{ CompatGeckoMobile("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Available in workers{{ CompatUnknown() }}{{ CompatGeckoMobile("38.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf