react报错:Cannot read property ‘setState‘ of undefined 其他 2021-02-08 15:18 0 阅读 错误如下: 代码如下: 原因是this已经不是当前组件的this了,可以在方法里加一个bind改变this的指向 猜你喜欢