最新的Vue和React生命周期 Vue 生命周期 vue生命周期主要有8个 beforeCreatecreatedbeforeMountmountedbeforeUpdateupdatedbeforeDestroydestroyed React 生命周期 react生命周期主要有7个 挂载 componentWillMount(过时)componentDidMount 更新 componentWillReceiveProps(过时)shouldComponentUpdatecomponentWillUpdate(过时)componentDidUpdate 卸载 componentWillUnmount