会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Code change my mind
You have to believe in yourself. That's the secret of success.
博客园
首页
新随笔
联系
管理
订阅
2019年12月2日
react面试题——理解setState(源码object.assign)
摘要: setState是异步的方式 this.setState({ counter:this.state.counter+1 }) console.log(this.state.counter) setState是异步,执行最后一个setState 同步执行的方法,传递函数 1,this.setState
阅读全文
posted @ 2019-12-02 18:03 focus_yaya
阅读(639)
评论(0)
推荐(0)
编辑
公告