一、实现call方法
Function.prototype.myCall = function (context) {
if(context == null){
context = window;
}
context.fn = this;
const arg = [...arguments].slice(1);
const ret = context.fn(...arg);
delete context.fn;
return ret;
}
function fn1(a, b) {
console.log('this : ', this);<