首页 > 移动平台 > 详细

Model-View-Controller(MVC) is an architectural pattern that frequently used in web applications. Which of the following statement(s) is(are) correct?

时间:2016-11-16 14:01:32      阅读:393      评论:0      收藏:0      [点我收藏+]

Model-View-Controller(MVC) is an architectural pattern that frequently used in web applications. Which of the following statement(s) is(are) correct?(多选)

A、Models often represent data and the business logics needed to manipulate the data in the application

B、A view is a (visual) representation of its model. It renders the model into a form suitable for interaction, typically a user interface element

C、A controller is the link between a user and the system. It accepts input from the user and instructs the model and a view to perform actions based on that input

D、The common practice of MVC in web applications is, the model receives GET or POST input from user and decides what to do with it, handing over to controller and which hand control to views(HTML-generating components)

E、None of the above

答案:ABC

 

分析:

D、The common practice of MVC in web applications is, the model receives GET or POST input from user and decides what to do with it, handing over to controller and which hand control to views(HTML-generating components)

应该是controller从用户接受请求,传递给model

Model-View-Controller(MVC) is an architectural pattern that frequently used in web applications. Which of the following statement(s) is(are) correct?

原文:http://www.cnblogs.com/lashou/p/6068980.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!