vue.js生命周期八大状态

vue.js生命周期的八大状态:

1. beforeCreate(创建前)
2. created(创建后)
3. beforeMount(载入前)
4. mounted(载入后)
5. beforeUpdate(更新前)
6. updated(更新后)
7. beforeDestroy(销毁前)
8. destroyed(销毁后)

猜你喜欢

转载自blog.csdn.net/qq_43209114/article/details/82889203