Software architecture, WEB-MVC,MVP,MVVM

Source: Internet
Author: User

Reference
  1. https://www.zhihu.com/question/20148405/answer/107071448
  2. Http://www.cnblogs.com/indream/p/3602348.html
  3. Https://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000/ 001434501628911140e1cb6ce7d42e5af81480f7ecd5802000 (MVC)
  4. Https://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000/ 001475449022563a6591e6373324d1abd93e0e3fa04397f000 (MVVM)
MVC Model-Views (view)-Controller
  1. Model-used to encapsulate data related to business logic and how to handle the data.
  2. View-Show data
  3. Controller-Process business logic and control processes.
Mvpmvvmmodel-view-viewmodel

Self-understanding

In MVVM, once the model is updated, it is immediately reflected in the view. Once the view is updated, it is immediately reflected in the model. This is a two-way binding. For example, in teacher Liao's example, when updating a JS object (Model), the view is updated immediately. There is no need to manipulate the DOM (in MVC, the behavior of manipulating the DOM is the controller's process of handling the business). In MVC, the data is changed in the model, view cannot be updated immediately, because the controller controls this data update to throw to view, so this is one-way.

Software architecture, WEB-MVC,MVP,MVVM

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.