Console.dir()

Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Resumo

Exibe uma lista interativa das propriedades do objeto JavaScript especificado. A saída é apresentada como uma lista hierárquica com triângulos que permitem ver o conteúdo de objetos-filho.

Note: This feature is available in Web Workers

console-dir.png

Sintaxe

console.dir(object);

Parâmetros

object

Um objeto JavaScript cujas propriedades devem ser emitidas.

Especificação

Compatibilidade com navegadores

BCD tables only load in the browser

Ver também