react setState 的回调函数
参考文档:https://facebook.github.io/react/docs/react-component.html#setstatesetState 第一个参数是要改变的state对象第二个参数是state 导致的页面变化完成后的回调,等价于componentDidUpdate
·
参考文档:https://facebook.github.io/react/docs/react-component.html#setstate
setState 第一个参数是要改变的state对象
第二个参数是 state 导致的页面变化完成后的回调,等价于componentDidUpdate
更多推荐


所有评论(0)