apply call 和 bind 的区别

2018/3/9 posted in  tech

apply

fun.apply(thisArg[, argArray])

call

使用給定的this參數以及分別給定的參數來呼叫某個函數
fun.call(thisArg[, arg1[, arg2[, ...]]])

bind

返回一个函数, 类似 call