What is the life cycle of the execution order of the parent hook assemblies and subassemblies Vue is

    1. Load rendering process
      父beforeCreate->父created->父beforeMount->子beforeCreate->子created->子beforeMount->子mounted->父mounted
    2. Subassemblies update process
      父beforeUpdate->子beforeUpdate->子updated->父updated
    3. Parent component update process
      父beforeUpdate->父updated
    4. The destruction process
      父beforeDestroy->子beforeDestroy->子destroyed->父destroyed

Guess you like

Origin www.cnblogs.com/samsara-yx/p/11352432.html