- ASP.NET MVC 4 Mobile App Development
- Andy Meadows
- 171字
- 2021-08-13 16:48:10
The Model-View-Controller pattern
Each component of the MVC pattern fills a very specific purpose in separating data within an application from user interaction with the data. The following is a very brief introduction to the components of the MVC design pattern.
The controller
In the MVC pattern, the controller acts as a delegator. It submits modifications to the model on behalf of some external interaction (typically a user), and retrieves data for a view as the result of a notification or direct request via user interaction.
The view
Views handle the presentation of the data to some external entity. If a view contains logic, that logic is limited to the presentation of the data it received from the controller as the result of an interaction with the model.
The model
The model is the encapsulation of application-specific data, and the means by which to store, retrieve, and maintain the integrity of that data. The model may or may not mimic the structure in which the actual data is stored or presented.
- Implementing VMware Horizon 7(Second Edition)
- Android Wearable Programming
- AngularJS Testing Cookbook
- 數(shù)據(jù)庫程序員面試筆試真題與解析
- MySQL數(shù)據(jù)庫應(yīng)用與管理 第2版
- Python入門很簡單
- Rake Task Management Essentials
- 趣學(xué)Python算法100例
- PHP網(wǎng)絡(luò)編程學(xué)習(xí)筆記
- Python Network Programming Cookbook(Second Edition)
- Apex Design Patterns
- Cocos2d-x學(xué)習(xí)筆記:完全掌握Lua API與游戲項目開發(fā) (未來書庫)
- Apache Spark 2.x for Java Developers
- Learning JavaScript Data Structures and Algorithms
- Swift Playgrounds少兒趣編程