箭头函数的this是静态的,只能指向当前函数所在的作用域 普通函数中的this指向window对象 在react中,由于箭头函数没有自己的this,会自动往外层寻找,找到render。render中this是组件实例对象