zoukankan      html  css  js  c++  java
  • vue生命周期

    vue生命周期理解

    1. 文字版

    1. 正常情况下 vue 中的生命周期执行顺序
      • beforeCreate
      • created
      • beforeMount
      • mounted
      • beforeUpdate
      • updated
      • beforeDestroy
      • destroyed
    2. 如果在项目中父组件在调用自组建时生命周期的执行顺序
      • 父组件 beforeCreate 父组件创建前
      • 父组件 created 父组件创建后
      • 父组件 beforeMount 父组件挂载前
        • 子组建 beforeCreate 子组件创建前
        • 子组建 created 子组件创建后
        • 子组建 beforeMount 子组件挂载前
        • 子组建 mounted 子组件挂载后
      • 父组件 mounted 父组件挂载后
      • 父组件 beforeUpdate 父组件更新前
        • 子组建 beforeUpdate 子组件更新前
        • 子组建 updated 子组件更新后
      • 父组件 updated 父组件更新后
      • 父组件 beforeDestroy 父组件销毁前
        • 子组建 beforeDestroy 子组件销毁前
        • 子组建 destroyed 子组件销毁后
      • 父组件 destroyed 父组件销毁后

    2. 图片版

    VUE生命周期个人理解版

    3. VUE官方生命周期图

    VUE生命周期官方版
  • 相关阅读:
    静态区,堆,栈
    C语言位操作
    引用形参
    联合体/共同体 union
    typedef的使用
    有源晶振和无源晶振
    什么是SMT钢网
    点名游戏~自己先作
    我同学——应聘阿里巴巴之经过
    阳光明媚的一天~|~
  • 原文地址:https://www.cnblogs.com/unlockth/p/14917743.html
Copyright © 2011-2022 走看看