摘要: 什么是声明生命周期函数:生命周期函数是组件在某一个时刻会自动执行的函数。 一:挂载阶段(Mounting)执行的生命周期函数: componentWillMount() == UNSAFE_componentWillMount() 表示:组件将要挂载阶段自动执行 render() 表示:渲染页面内容 阅读全文
posted @ 2019-12-05 14:25 Courage.Kiven 阅读(151) 评论(0) 推荐(0) 编辑