Mvc model and the difference model mvvm

1.mvc model

m (model model is responsible for obtaining data from a local or server), V (view view, responsible for displaying model data), c (controller controller, responsible for the model data to the view, or to view a user operation data to the model, i.e., c is the bridge between m and v), but with the development of web pages, web page data needed for more complex, a lot of data needs to be resolved, if the data parsing all written in the controller, the controller will cause bloated, and when designing the controller itself is not used for data analysis, therefore, mvvm model was born.

 

2.mvvm model

And v and m meaning mvc model mvvm model is the same, the main difference is that vm (viewmodel), vm is used for data analysis, the data analysis results to the VM controller, then the controller is responsible for between m and v data transfer.

 

Guess you like

Origin www.cnblogs.com/caizetian/p/11647032.html