vue生命周期暴露了8个钩子函数:
挂载阶段(4个)
beforCreate
created
beforMount
mounted
更新阶段(2个)
beforUpdate
updated
卸载阶段(2个)
beforDestroy
destroyed
vue生命周期暴露了8个钩子函数:
挂载阶段(4个)
beforCreate
created
beforMount
mounted
更新阶段(2个)
beforUpdate
updated
卸载阶段(2个)
beforDestroy
destroyed