xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

console.dir All In One

console.dir All In One

const arr = [
    [
        "james",
        {
            "name":"James Zhao",
            "description":"CEO  ---  Create Employee’s Opportunity"
        }
    ],
    [
        "jerryzhu",
        {
            "name":"Jerry Zhu",
            "description":"    有所作为是生活的最高境界。"
        }
    ],
];

console.log(arr);

console.log(JSON.stringify(arr, null, 4));

// Node.js terminal 中展开显示多层嵌套的对象
console.dir(arr);

image

https://cdn.xgqfrms.xyz/json/app.json

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

The method console.dir() displays an interactive list of the properties of the specified JavaScript object. The output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects.

In other words, console.dir() is the way to see all the properties of a specified JavaScript object in console by which the developer can easily get the properties of the object.

方法 console.dir() 显示指定 JavaScript 对象的属性的交互式列表。
输出显示为带有显示三角形的分层列表,可让您查看子对象的内容。

换句话说,console.dir() 是在控制台中查看指定 JavaScript 对象的所有属性的方法,开发人员可以通过它轻松获取对象的属性。

https://developer.mozilla.org/en-US/docs/Web/API/Console/dir



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-12-29 20:00  xgqfrms  阅读(16)  评论(1编辑  收藏  举报