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

原文地址:https://www.cnblogs.com/hbxZJ/p/15170599.html