this与call,apply,bind deibo 2022-06-04 131 阅读1分钟 this永远指向最后一个调用该函数的对象。最后的意思是,假如fn里有this,那么obj1.obj2.fn()中this指向obj1。而箭头函数是不支持this的,所以箭头函数的this执行函数定义外的this的指向 call语法 fn().call(object,x,y,z) apply语法 fn().apply(object,[x,y,z]) bind语法 .fn().bind(object,x,y,z)()