//组件加载的时候
    constructor(props){
        super(props)
        this.state = {
            msg:'张学友'
        }
    }
    //组件将要挂载
    componentWillMount(){
        
    }
    //数据渲染
    render(){
        
    }
    //组件挂载完成的时候
    componentDidMount(){
        
    }

    //组件数据更新的时候

    //是否需要更新
    shouldComponentUpdate(){
        return true
    }
    //将要更新
    componentWillUpdate(){

    }
    //更新完成
    componentDidUpdate(){

    }
    render(){

    }
    //父组件里面改变props传值的时候出发
    componentWillReceiveProps(){

    }
    //组件销毁
    componentWillUnmount(){

    }

  

相关文章:

  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-05-09
  • 2021-10-01
  • 2021-06-13
猜你喜欢
  • 2021-12-31
  • 2021-07-31
  • 2022-12-23
  • 2021-11-28
  • 2021-05-30
相关资源
相似解决方案