React 生命周期函数(重要) 生命周期函数指在某一时刻组件会自动调用的函数 componentWillMount 组件即将被挂载到页面的时候执行 render 当组件的state或者props发生改变的时候 render函数就会重... 10月30日 发表评论 收藏 阅读全文