1. Component life cycle:< /strong>
1. Component life cycle:
4 aStage:
create: Createnew Vue()Sample object or component object
mount: scan and generate virtualDOMTree, First loading page
update: When the model data is updated
destroy: When the component object is destroyed
p>
8 a hook function:
beforeCreate
created
beforeMount
mounted
beforeUpdate
updated
beforeDestroy
destoryed