Lifecycle hook summary Vue learning (four)

First, the life cycle of the hook (function):

1, each instance when it is created Vue go through a series of initialization process - for example, the need for data monitoring, compiling templates, examples will be mounted to the DOM and DOM updates when the data changes. Some will also run in this process is called the life cycle of the hook function, which gives the user the opportunity to add your own code at different stages.

2, there is illustrated:

Guess you like

Origin www.cnblogs.com/21-forever/p/11105864.html