This page was translated from English by the community. Learn more and join the MDN Web Docs community.
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 2015년 7월.
console.dirxml() 메서드는 주어진 XML/HTML 요소의 자손 요소를 인터랙티브한 트리로 표시합니다.
요소를 표시하는 것이 불가능한 경우에는 JavaScript 객체 보기가 대신 보여집니다.
출력된 결과는 자식 노드의 내용을 볼 수 있는 여닫을 수 있는 노드의 계층적인 목록으로 나타납니다.
구문
js
dirxml(object)
매개변수
object-
출력할 속성을 포함한 JavaScript 객체
반환 값
없음 (undefined).
명세
| Specification |
|---|
| Console> # dirxml> |
브라우저 호환성
Enable JavaScript to view this browser compatibility table.