English 中文(简体)
SAP UI5 - MVC Concept
  • 时间:2024-03-26 00:07:39

SAP UI5 - MVC Concept


Previous Page Next Page  

在SAP UI5开发中使用了模拟收音机(MVC)概念,将申请数据与用户互动分开。 这使你能够开发网络应用,独立地改变应用。

模拟收音机在建立国际交易日志方面发挥着不同的作用——

    Model负责管理数据库/备份中的应用数据。

    <View负责确定用户界面。 如果用户发出其装置的请求,则该观点负责按照所提交的要求进行数据观测。

    主计长 通过更新观点和模式,用于控制数据并视每个用户的互动情况。

Controller

您可在SAPUI5中界定“电子通话”概念,其特征如下:

Model

    Model acts as a bridge between the view and the apppcation data.

    Model is used to get the request from the view and respond as per the user’s input.

    Model doesn’t depend on classes.

View

    View is responsible to manage information display to the users.

    Views are based on Model.

Controller

    主计长负责接收设备提供的投入,并向模型/概览进行沟通,并启动正确行动。

    主计长以模式为基础。

缩略语 以单一档案形式提出的意见和主计长——

    sap.ui.core.mvc.XMLView

    sap.ui.core.mvc.JSView

    sap.ui.core.mvc.Controller

    sap.ui.core.mvc.JSONView

JSON Model

    JSON model is a cpent-side model and is used for small data sets.

    JSON model supports two-way binding. Data binding concept is mentioned in the latter half of this tutorial.

    JSON model can be used to bind controls to JavaScript object data.

XML Model

    XML model can be used to bind controls to XML data.

    XML is also a cpent side model and hence is used only for small data sets.

    XML model doesn’t provide any mechanism for server-based paging or loading of deltas.

    XML model also supports two-way data binding.

Advertisements