Can someone explain MVC very simply for me?

This question already has an answer here:

  • What are MVP and MVC and what is the difference? 24 answers

  • To understand MVC in Layman's term, refer to the variation of the bank analogy

    Essentially, MVC is:

  • the Model is the part of the code that knows things
  • the View is the part of the code that shows the things the Model knows
  • the Controller is the part of the code that gets commands from the user and tells the View what to show and the Model what to know.

  • It's the separation of data (model), logic (controller) and displaying the results (views). Using MVC has the advantage that the different roles in an application are separated, which makes it more robust. Another advantage is that it's easier to maintain as more developers are used to this way of programming.


    MVC is a way to separate the core of your application from the graphics parts. you have a controler, you does all the access and work, and some views, who just display the result and interact with the user, without doing any processing off the data

    http://en.wikipedia.org/wiki/Model–view–controller

    链接地址: http://www.djcxy.com/p/30188.html

    上一篇: MVC优于MVP的好处

    下一篇: 有人可以为我简单地解释MVC吗?