this.state = {foo: 2}; this.setState({foo: 123}, ()=> { console.log(foo); });
setState回调
猜你喜欢
转载自www.cnblogs.com/dianzan/p/11822283.html
今日推荐
周排行