MVVM understanding of front-end development model

1. What is the MVVM pattern?

  1. MVVM is a Model-View-ViewModel shorthand. Simple explanation, mvvm is a front end view of the development of stratified layers of thought.

2.MVVM by a few parts from?

  1. M: model layer, can be understood as a separate data stored in each page (a bit like a server)
  2. VM: the core of MVVM, the VM as a dispatcher , the relationship between the divided M and V, as the intermediate layer , and V M schedule page.
  3. V: view layer, it can be understood as a popular page structure of MTHL .

Advantage 3.MVVM mode

  1. Front-end development using MVVM pattern is to allow developers to more convenient and efficient. (Learned vue.js and react.js possible personal experiences), which most people praise MVVM is to provide two-way data binding. ( Two-way data binding is provided by the VM )

4 If you feel that the text is difficult to understand, then to a diagram to explain it in clear

MVVM hierarchical development ideas

Released three original articles · won praise 8 · views 279

Guess you like

Origin blog.csdn.net/CHENJIANCONG66/article/details/104523072