This separation allows the model to be built and tested independently from the visual presentation.
这种分离让模型能够在不依赖于表现层的情况下被建立。
Even if you don't do the view-model separation, the MVC pattern is valuable in many situations, so you should take a look at how it works and what it can do for you.
即使您不进行视图-模型的分离,在很多情况下mvc模型也会有所价值,所以您应该去了解它如何工作,以及它可以为您做些什么。
For example, suppose you know that you want the separation of concerns of Model-View-Presenter.
例如,假定您知道需要分离模型-视图-表示器(Model - View - Presenter)关注点。
应用推荐