Displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes.
console.dirxml(object);
对象
A JavaScript object whose properties should be output.
| 规范 | 状态 | 注释 |
|---|---|---|
|
控制台 API
The definition of 'console.dirxml()' in that specification. |
实时标准 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
dirxml
|
Chrome Yes | Edge 12 | Firefox Yes | IE Yes | Opera Yes | Safari ? | WebView Android Yes | Chrome Android Yes | Firefox Android No | Opera Android ? | Safari iOS ? | Samsung Internet Android Yes |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。