摘要: react请求接口数据是在componentDidMount 还是componentWillMount周期好?React数据获取为什么一定要在componentDidMount里面调用? 对于同步的状态改变,是可以放在componentWillMount,对于异步的,最好好放在componentDi 阅读全文
posted @ 2019-07-25 15:41 DeeplyWeb 阅读(2143) 评论(0) 推荐(0) 编辑