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 @   从此重新定义啦  阅读(27)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示