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


    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

  • 相关阅读:
    JS判断页面是否加载完成
    简单的前端验证码
    如何让旧浏览器支持HTML5新标签
    JSON使用(4)
    JSON语法(3)
    JSON简介(2)
    JSON教程(1)
    jQuery-noConflict()
    jQuery
    jQuery
  • 原文地址:https://www.cnblogs.com/lashou/p/6068980.html
Copyright © 2020-2023  润新知