SOURCE

const steven = {
    name :"steven",
    phoneBattery:70,
    charge:function (leve1,leve2) {
        this.phoneBattery = leve1 + leve2
    }
}

const becky = {
    name :"becky",
    phoneBattery:30,   
}

steven.charge.call(becky,30,60)  //call
// steven.charge.apply(becky,[30,60])  //apply ,参数接受阵列类型
console.log(becky)

// var beckycharge= steven.charge.bind(becky)  //bind 不能立即执行,会先返回一个function 
// beckycharge(60,30)
// console.log(becky)
console 命令行工具 X clear

                    
>
console