摘要: 挂载阶段:当组件实例被创建并插入DOM中时 · constructor() · static getDerivedStateFromProps() · render() · componentDidMount() 更新阶段:当组件的props或state发生变化时会触发更新 · static get 阅读全文
posted @ 2021-08-20 17:28 扶不起的阿斗。 阅读(30) 评论(0) 推荐(0) 编辑