Vue Instance/Component 只是 MVVM 中的 ViewModel 吗? [英] Is the Vue Instance / Component only the ViewModel in the MVVM?

查看:31
本文介绍了Vue Instance/Component 只是 MVVM 中的 ViewModel 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自 Vue 文档:

在 Vue.js 中,每个 Vue 实例都是一个 ViewModel.

In Vue.js, every Vue instance is a ViewModel.

在阅读了很多关于 MVC、MVP 和 MVVM 等设计模式的文章后,我对此有点困惑.

I am a little confused about that after reading so many articles on the design pattern like MVC, MVP, and MVVM.

我们都知道在 Vue 实例或 Vue 组件(也是 Vue 实例)中,我们有