函数参数对象以及apply的使用

使用 apply 调用函数

http://www.nowcoder.com/questionTerminal/d47b482e7148497582c7a995df51f393

function callIt(fn) {
    let args = Array.prototype.slice.call(arguments, 1)
    return fn.apply(this, args)
}

Tim的资源站

全部评论

相关推荐

饼子吃到撑:学院本是这样的,找工作拼运气,你技术再好人家筛选学历照样沉入海底,海投就行了
点赞 评论 收藏
分享
评论
6
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务