1
我越来越即使我做了绑定“_this2.SetState不是一个函数阵营本土阵营 - _this2.SetState不是一个函数
这里下面的错误是我的代码
// Subscribers to selected team change
const subToNewDataChange = subscribe('newData', state => {
const random = Math.random() * (100 - 15) + 15;
// Updates the state with the connection change and re renders the view
this.setState({key:random }, function() {
this.forceUpdate();
}.bind(this));
});
很高兴听到这个问题解决:)干杯! –