day033: 能不能实现一个 call/apply 函数?

引自冴羽大佬的代码,能够说比较完整了。app Function.prototype.call = function (context) { let context = context || window; let fn = Symbol('fn'); context.fn = this; let args = []; for(let i = 1, len = arguments.leng
相关文章
相关标签/搜索