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

Web コンソールに警告メッセージを出力します。

+ +

{{AvailableInWorkers}}

+ +

{{Note("Firefox では、Web コンソールでこれらのログの隣に小さな感嘆符のアイコンを表示します。")}}

+ +

構文

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

引数

+ +
+
obj1 ... objN
+
出力する JavaScript オブジェクトのリスト。各オブジェクトを文字列で表現したものを、リストの並び順に追記して出力します。
+
msg
+
0 個以上の置換文字列を含む JavaScript 文字列。
+
subst1 ... substN
+
msg 内の置換文字列を置き換える JavaScript オブジェクト。これにより、出力形式を高度に制御できます。
+
+ +

詳しくは {{domxref("console")}} のドキュメントで、コンソールにテキストを出力する をご覧ください。

+ +

仕様

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

ブラウザ実装状況

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本サポート{{CompatVersionUnknown}}{{CompatGeckoDesktop("2.0")}}8{{CompatVersionUnknown}}{{CompatVersionUnknown}}
置換文字列{{CompatUnknown}}{{CompatGeckoDesktop("9.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
Worker で使用可能{{CompatUnknown}}{{CompatGeckoDesktop("38.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
機能AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
基本サポート{{CompatUnknown}}{{CompatGeckoMobile("2.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
置換文字列{{CompatUnknown}}{{CompatGeckoMobile("9.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
Worker で使用可能{{CompatUnknown}}{{CompatGeckoMobile("38.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

関連情報

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