SOURCE

function Person(){
    this.name = "张三";
    this.sayName = function(a,b){
        console.log("我是fun函数第一个参数:" + a);
        console.log("我是fun函数第一个参数:" + b);
        
        console.log("我是fun函数!" + this.name);
    }
}
var obj1 = {name: "李四"};
var per1 = new Person();

per1.sayName.apply(obj1, ["实参1","实参2"]);  // 我是fun函数!李四
console 命令行工具 X clear

                    
>
console