js中function执行时使用bind函数修改this指向 const data = {a:123} const ff = { fun(){ console.log(this) } } ff.fun() const f = ff.fun.bind(data) f() ff.fun() 执行时 this 指向 ff f() 执行时 this 被指向了data