--- 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.