热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_48445640
graceful coding
5 年前
trueweixin_48445640

每天坚持,科研与计算机冲冲冲

北京市城北街道
CSDN App 扫码分享
分享
评论
2
打赏
  • 复制链接
  • 举报
下一条:
apply的实现:Function.prototype.apply = function(context = window, args) { if (typeof this !== 'function') { throw new TypeError('Type Error'); } const fn = Symbol('fn'); context[fn] = this; const res = context[fn](...args); delete context[fn]; return res;}
立即登录