使用箭头函数你要格外的小心;箭头函数运行时候`bind this` 。 场景: * 定义对象方法 * 定义原型方法 * 定义构造函数 * 定义事件回调函数 箭头函数没有定义this绑定 ``` var obj = { i: 10, b: () => console.log(this.i, this), c: function() { console.log( this.i, this) } } obj.b(); // undefined, Window{...} ```