react 中 生命周期

生命周期函数 指在某一时刻组件会自动调用执行的函数 例如     当时 state 和props 发送改变是会自动执行  render 函数   1.Initializtion     初始化 props 和 state 2.Mounting  组件挂载     //在组件即将被挂载到页面的时刻执行     componentWillMount(){           console.log('
相关文章
相关标签/搜索