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

{{APIRef("Console API")}}

+ +

{{domxref("Console")}} の dir() メソッドは、指定された JavaScript オブジェクトのプロパティの対話的なリストを表示します。出力は折り畳み式の階層的なリストで表示され、子オブジェクトの中身を見ることができます。

+ +

言い換えれば console.dir() は指定された JavaScript オブジェクトのプロパティをすべてコンソール上で見る方法であり、開発者は簡単にオブジェクトのプロパティを得ることができます。

+ +

{{AvailableInWorkers}}

+ +

console-dir.png

+ +

構文

+ +
console.dir(object);
+
+ +

引数

+ +
+
object
+
プロパティを出力する JavaScript オブジェクトです。
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("Console API", "#dir", "console.dir()")}}{{Spec2("Console API")}}初回定義
+ +

ブラウザーの互換性

+ + + +

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

+ +

関連情報

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