zoukankan      html  css  js  c++  java
  • vue 生命周期钩子 路由钩子 动画钩子 执行顺序

    进入首页的钩子们

    1 路由钩子 路由跳转前beforeEach

    2 路由钩子 home组件内部:守卫执行前beforeRouteEnter

    3.路由钩子 路由跳转后afterEach

    4 生命周期 home beforeCreate 创建前状态

    5 生命周期 home created 创建完毕状态

    6 生命周期 home beforeMount 挂载前状态

    7 动画钩子 beforeEnter

    8 生命周期 home mounted 挂载结束状态

    9 动画钩子 enter

    10 动画钩子 afterEnter

    离开首页,进入别的页面 other

    1 路由钩子 home 导航离开该组件beforeRouteLeave

    2 路由钩子 路由跳转前beforeEach
    
    3 路由钩子 other组件内部:守卫执行前beforeRouteEnter
    
    4.路由钩子 路由跳转后afterEach
    
    5 生命周期 other beforeCreate 创建前状态
    
    6 生命周期 other created 创建完毕状态
    
    7 生命周期 other beforeMount 挂载前状态
    
    8 动画钩子 beforeEnter 
    

    9 动画钩子 beforeLeave

    10 动画钩子 leave

    11 动画钩子 afterLeave

    12 生命周期 home beforeDestroy 销毁前状态

    13 生命周期 home destroyed 销毁完成状态

    14 生命周期 other mounted 挂载结束状态
    
    15 动画钩子 enter
    
    16 动画钩子 afterEnter
  • 相关阅读:
    gitlab授权登录
    mysql的sql_mode设置
    fork了别人项目怎么保持更新呢?
    memcache命令参数详解
    memcache 操作详解
    字符串拼接性能对比
    yum设置镜像
    ifconfig找不到命令怎么通过工具连
    this is incompatible with sql_mode=only_full_group_by
    jmeter切换语言
  • 原文地址:https://www.cnblogs.com/wyy5552/p/11686030.html
Copyright © 2011-2022 走看看