Vue - understanding of life cycle + understanding of life cycle diagram

Peach_ In vain 2022-01-15 02:27:49

Understanding components From creation -> function -> The destruction Three stages of
understand vue A process in the life cycle

Life cycle

 Life cycle (Life Cycle) Refers to the creation of a component from -》 function -》 The whole stage of destruction , The emphasis is on a time period .

Life cycle function

 By vue Built in functions provided by the framework , It will be accompanied by the life cycle of components , Automatically execute in order .

Be careful : Life cycle emphasizes time period , The life cycle function emphasizes the point in time

Classification of component lifecycle functions

 Insert picture description here

Lifecycle diagram

 Insert picture description here
You can refer to vue Official documents give “ Lifecycle diagram ”, Further understand the process of component life cycle execution : ( Sidebar ->vue example -> Lifecycle diagram )
vue Official website jump connection

Similar articles