vue.js生命周期的十大狀态:
1. beforeCreate(建立前)
2. created(建立後)
3. beforeMount(載入前)
4. mounted(載入後)
5. beforeUpdate(更新前)
6. updated(更新後)
7. beforeDestroy(銷毀前)
8. destroyed(銷毀後)
9. activated(keep-alive元件激活階段調用)
10. deactivated (keep-alive元件停用階段調用)
vue.js生命周期的十大狀态:
1. beforeCreate(建立前)
2. created(建立後)
3. beforeMount(載入前)
4. mounted(載入後)
5. beforeUpdate(更新前)
6. updated(更新後)
7. beforeDestroy(銷毀前)
8. destroyed(銷毀後)
9. activated(keep-alive元件激活階段調用)
10. deactivated (keep-alive元件停用階段調用)