标签:需要 set rev ops style stat pre div react
this.setState( (prevState,props)=>{ //可以调用之前的state })
react setState需要调用之前的state
原文地址:https://www.cnblogs.com/liqunblog/p/8978946.html