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
Lifecycle diagram
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
版权声明
本文为[Peach_ In vain]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/12/202112122244455879.html