react生命周期函数

生命周期函数:某一时刻组件会自动调用执行的函数 render也是 initialization(初始化) constructor里 mounting(挂载) componentWIllMount(){//在组件即将挂载到页面上时执行 } //接下来render(){ } conponentDidMount(){//挂载到页面之后自动执行 } updation componentWillReceiv
相关文章
相关标签/搜索