From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- .../zh-tw/tools/web_console/rich_output/index.html | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 files/zh-tw/tools/web_console/rich_output/index.html (limited to 'files/zh-tw/tools/web_console/rich_output') diff --git a/files/zh-tw/tools/web_console/rich_output/index.html b/files/zh-tw/tools/web_console/rich_output/index.html new file mode 100644 index 0000000000..d09757cfa2 --- /dev/null +++ b/files/zh-tw/tools/web_console/rich_output/index.html @@ -0,0 +1,75 @@ +--- +title: 豐富的輸出對象 +slug: Tools/Web_Console/Rich_output +translation_of: Tools/Web_Console/Rich_output +--- +

當網路主控台印出物件時,它不但會顯示物件名、還會包括該物件資訊的 richer set。尤其是它要:

+ + + +

特定類型的 rich output

+ +

網路主控台給許多物件類型提供了 rich output,包括:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Object
Array
Date
Promise +
+

New in Firefox 36

+
+

+
RegExp
Window
Document
Element
Event
+ +

檢查物件屬性

+ +

當控制台印出一個物件的時候,它會以斜體的樣式呈現。點擊它,你會看到一個有該物件詳細資訊的面板: +

+ +

要關閉此面板請按 Esc 鍵...

+ +

高亮顯示與 DOM 節點檢查

+ +

若你在控制台印出的 DOM 元素上懸停游標,頁面會高亮該元素:

+ +

In the screenshot above you'll also see a blue "target" icon next to the node in the console output: click it to switch to the Inspector with that node selected.

-- cgit v1.2.3-54-g00ecf