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
相關文章
相關標籤/搜索