vue 框架使用 MVC框架模式,其中 MVC(Model->View->Control)与 MVVM(Model->View->View-Model)不同请看下图:

Vue的生命周期:

生命周期描述:
三个阶段的生命钩子函数:
1.创建阶段: beforeCreate(), created(), beforeMount
2.更新阶段: mounted, beforeUpdate, updated
3.销毁阶段:beforeDestroy, destroyed
以上仅供学习~~
vue 框架使用 MVC框架模式,其中 MVC(Model->View->Control)与 MVVM(Model->View->View-Model)不同请看下图:
生命周期描述:
三个阶段的生命钩子函数:
1.创建阶段: beforeCreate(), created(), beforeMount
2.更新阶段: mounted, beforeUpdate, updated
3.销毁阶段:beforeDestroy, destroyed
以上仅供学习~~
本文标题:vue 的生命周期
本文链接:https://www.haomeiwen.com/subject/jjmwjltx.html
网友评论