函数参数对象以及apply的使用
使用 apply 调用函数
http://www.nowcoder.com/questionTerminal/d47b482e7148497582c7a995df51f393
function callIt(fn) {
let args = Array.prototype.slice.call(arguments, 1)
return fn.apply(this, args)
} 使用 apply 调用函数
http://www.nowcoder.com/questionTerminal/d47b482e7148497582c7a995df51f393
function callIt(fn) {
let args = Array.prototype.slice.call(arguments, 1)
return fn.apply(this, args)
} 相关推荐