bind 的用法在之前有讲过,这个 API 就是返回一个函数 + 绑定 this
bind
this
let obj = { a: 1 }function fn(){ console.log( this ) console.log( this.a )}let newFn = fn.bind( obj )newFn()