参考这篇文章

https://www.runoob.com/w3cnote/js-call-apply-bind.html

function argsAsArray(fn, arr) {
    return fn.call(this,arr[0],arr[1],arr[2])
}