6.对象

代码

    var person={
        name:"linzi",
        age:19,
        gender:"man",
        detail:function () {
            return "just be lin";
        }
    }

    console.log(person.name);
    console.log(person.detail());

输出:

linzi

just be lin

posted @ 2021-08-21 21:21  从此重新定义啦  阅读(26)  评论(0编辑  收藏  举报