我也被问了this指向问题, var a = 2; let obj = { a: 1, get1: function(){ console.log(this.a); }, get2: () => { console.log(this.a); } } obj.get1(); obj.get2();