console.dirxml()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

console.dirxml() 메서드는 주어진 XML/HTML 요소의 자손 요소를 인터랙티브한 트리로 표시합니다. 요소를 표시하는 것이 불가능한 경우에는 JavaScript 객체 보기가 대신 보여집니다. 출력된 결과는 자식 노드의 내용을 볼 수 있는 여닫을 수 있는 노드의 계층적인 목록으로 나타납니다.

구문

js
dirxml(object)

매개변수

object

출력할 속성을 포함한 JavaScript 객체

반환 값

없음 (undefined).

명세

Specification
Console
# dirxml

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
dirxml() static method

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Has more compatibility info.