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/console/error/index.html | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 files/ja/web/api/console/error/index.html (limited to 'files/ja/web/api/console/error') diff --git a/files/ja/web/api/console/error/index.html b/files/ja/web/api/console/error/index.html new file mode 100644 index 0000000000..5655e1e99a --- /dev/null +++ b/files/ja/web/api/console/error/index.html @@ -0,0 +1,77 @@ +--- +title: Console.error() +slug: Web/API/Console/error +tags: + - API + - DOM + - Debugging + - Method + - Web Development + - web console +translation_of: Web/API/Console/error +--- +
{{APIRef("Console API")}}
+ +

デバッガの Web コンソールにエラーメッセージを出力します。

+ +

{{AvailableInWorkers}}

+ +

構文

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

補足: console.exception() は、console.error() の別名です。これらは機能的に同じものです。

+
+ +

引数

+ +
+
obj1 ... objN
+
出力する JavaScript オブジェクトのリスト。 各オブジェクトの文字列表現が記述順で出力されます。
+
msg
+
0 個以上の置換文字列 (substitution strings) を含む JavaScript 文字列。
+
subst1 ... substN
+
msg 内の置換文字列を置換するJavaScript オブジェクト。これにより、出力の書式の詳細な制御が可能となります。
+
+ +

詳細については、{{domxref("console")}} ドキュメント内の コンソールへのテキスト出力 を参照してください。

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様書策定状況コメント
{{SpecName("Console API", "#error", "console.error()")}}{{Spec2("Console API")}}最初期の定義
+ +

ブラウザ実装状況

+ +
+ + +

{{Compat("api.Console.error")}}

+
+ +

関連情報

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