Function.prototype.call = function(context=window,...args){
const fnc = this;
const fn = Symbol('fn');
context[fn] = fnc;
const res = context[fn](...args);
delete context[fn]
return res
}
实现call/apply方法
最新推荐文章于 2025-11-29 13:42:57 发布
6327

被折叠的 条评论
为什么被折叠?



