// bind:返回一个新的函数 this指向 bind 后面跟的对象
const a = {
x: 100,
getx: function () {
console.log(this.x);
return this.x;
},
};
const b = a.getx;
// console.log(b());
const c = b.bind(a);
console.log("c:", c());
const x = [1, 2, 3];
const y = ["a", "b", "c"];
const r = x.concat(y);
x.push.apply(x, y);
// console.log("r:", r);
// console.log("x:", x);
const j = [1, 2, 3, 4, 80];
const max = Math.max.apply(null, j);
console.log("max:", max);
// call 接受的是一个参数列表