Front-end design basis -MVVM

Chapter 5 MVVM design ideas

MVC design ideas:

M: model layer provides data model data

V: Views view rendering data layer

C: controller controlling layer data call render the view

Here Insert Picture Description

MVVM design:

M: model layer provides data model data

V: Views view rendering data layer

VM: ViewsModel view call data model layer to render the view

Driven by the data view (dom operation does not require consideration, to focus on VM)

Here Insert Picture Description

Released 1825 original articles · won praise 1948 · Views 170,000 +

Guess you like

Origin blog.csdn.net/weixin_42528266/article/details/105118638