MVVM对javascript库的依赖性? [英] MVVM dependency on javascript libraries?

查看:61
本文介绍了MVVM对javascript库的依赖性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我熟悉MVC,但不熟悉MVVM。我检查了有关MVC / MVVM / MVP之间差异的各种帖子。

I am familiar with MVC but not MVVM. I checked various posts related to difference between MVC/MVVM/MVP.

即使我检查了Microsoft的办公链接 https://msdn.microsoft.com/zh-cn/magazine/dn463786.aspx ,但是每次我在这些链接中发现一个共同的地方是,他们解释了使用第三方JavaScript库实现MVVM(角度,挖空,灰烬等)。

Even I checked Microsoft's office link https://msdn.microsoft.com/en-us/magazine/dn463786.aspx but each time I found a common thing among these links is that, they explained implementation of MVVM using third party JavaScript libraries (Angular, knocknout, Ember etc).

这是否意味着MVVM依赖于这些类型的库?
是否可以使用简单的方法来实现MVVM jQuery?
请澄清一下这个概念。

Does it means that MVVM is dependent on these type of libraries ? Is it possible to implement MVVM using simple jquery? Please clarify about this concept.

谢谢。

推荐答案

MVVM 是一种设计模式。 Angular Knockout Ember 等都是这些的特定实现模式。如果选择使用它们的特定实现,则将依赖于它们的库。

MVVM is a design pattern. Angular, Knockout, Ember etc are all specific implementations of the pattern. If you choose to use their particular implementation, you will be dependent on their libraries.

这篇关于MVVM对javascript库的依赖性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆