摘要: react组件生命周期分为三大部分: 1、挂载 constructor componentWillMount render componentDidMount组件挂载完成可以请求后台数据 2、更新 componentReceiveProps,只在props更新时调用 shoudComponentUp 阅读全文
posted @ 2021-08-19 01:06 sunny-web 阅读(43) 评论(0) 推荐(0)