摘要: React 组件的生命周期方法 按渲染顺序: 1: UNSAFE_componentWillMount() – 在渲染之前执行,在客户端和服务器端都会执行。 2: componentDidMount() – 仅在第一次渲染后在客户端执行。 3: UNSAFE_componentWillReceive 阅读全文
posted @ 2019-08-19 13:08 _林冲 阅读(1106) 评论(0) 推荐(0) 编辑