最新的Vue和React生命周期
Vue 生命周期
vue生命周期主要有8个
- beforeCreate
- created
- beforeMount
- mounted
- beforeUpdate
- updated
- beforeDestroy
- destroyed
React 生命周期
react生命周期主要有7个
挂载
- componentWillMount(过时)
- componentDidMount
更新
- componentWillReceiveProps(过时)
- shouldComponentUpdate
- componentWillUpdate(过时)
- componentDidUpdate
卸载
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)