SOURCE

function fun(){
    console.log(this.name);
}

var obj = {
    name:"张三",
    age: 16,
    test: fun
};

var obj2 = {
    name: "李四",
    age: 13,
    test:fun
};


obj.test();
obj2.test();

fun();



console 命令行工具 X clear

                    
>
console