📅  最后修改于: 2022-03-11 15:03:23.148000             🧑  作者: Mango
Function.prototype.myBind = function (...args) {
const that = this
const params = args.slice(1)
return function (...args2) {
that.apply(args[0], [...params, ...args2])
}
}