![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
薛中然
向着光亮的地方
展开
-
1.react学习笔记-解决react修改state对象,页面不刷新问题
1.react想要修改state中对象的属性: this.state = { peopleType:[ {type:'上访人员',ptype:'type_1',styleName:styles.Petition,checked: true}, {type:'老年人',ptype:'type_2',styleName:styles.Aged,checked: true}, {type:'孤...原创 2019-06-27 17:50:05 · 5963 阅读 · 1 评论 -
2.react的setSate之后请求接口无数据问题
this.setState({ communityLogicID:value, eventNumber:{} },()=>{ this.getEventNumber() //这个接口需要使用communityLogicID }); ...原创 2019-07-17 16:00:19 · 480 阅读 · 0 评论 -
react中使用less编写多个类名(es6拼接)
原创 2019-07-25 10:10:52 · 4149 阅读 · 0 评论