In the example below you can see how two asynchronous calls (presumably to a database) are in-lined with the constructor of the view-model.
在下面的例子中,你可以看到两个异步调用(可能是到一个数据库的调用)是如何嵌入视图模型的构造函数里的。
Even if you don't do the view-model separation, the MVC pattern is valuable in many situations, so you should take a look at how it works and what it can do for you.
即使您不进行视图-模型的分离,在很多情况下mvc模型也会有所价值,所以您应该去了解它如何工作,以及它可以为您做些什么。
First we'll define the view-model. After that, we will bind the HTML markup to the view-model.
首先,我们要定义视图模型。之后,要将HTML标记与视图模型进行绑定。
To encapsulate these functions, we'll create another view-model class that represents a product.
为了封装这些函数,我们将创建另一个表示产品的视图模型类。
Obuect-oriented view-model is constructed in this paper by use of special data structure of relational CAD system.
运用关系型CAD系统数据结构的独特性,构造面向对象的视图模型。
View the model object Calculator.
查看模型对象Calculator。
Models are converted to HTML and published on your Intranet, where anyone with a Web browser can view the model.
模型转换成HTML并发布在内联网上,所有拥有Web浏览器的人都可以查看到模型。
Keep in mind the "user view" or "programming model" of concurrency as a matter of scheduling access to a unitary resource.
请记住,从“用户视图”或“编程模型”的角度来看,并发就是关于调度对不可分资源的访问这样一件事情。
An abstract description of the MRBT service using the connection view model (CVM) is addressed with the redefined call party handling mechanism which presents a technology independent service model.
该文通过连接视图模型对MRBT业务进行了抽象表示,建立了与实现技术无关的MRBT业务模型。
The view model here makes a concrete reference to the service.
这个视图模型对服务做了一个具体的引用。
It is very simple and contains exactly one service and one view model with a "mock database".
它非常简单并且只包含一个服务和一个带模拟数据库的视图模型。
You can define a view model yourself to add customized behavior but you don't need to.
你可以定义你自己的视图模型以添加行为,但你并不需要。
In it, a single servlet processes view, model and controller logic.
在这个反模式中,一个单独的servlet将处理视图、模型以及控制器逻辑。
It then provides a view model to add structure to the data so it can be aggregated to provide useful meaning.
然后它提供一个视图模型为数据添加结构,因此能够聚合数据得出有用的含义。
It USES metaprogramming to generate the view model and allow you to bind to the objects you define in your controller.
它使用元编程来生成视图模型,使你能够绑定至你在控制器中定义的对象。
The controllers bridge the view and model (see Figure 1).
控制器作为视图和模型之间的桥梁(请参阅图1)。
Figure 1 shows the logical model view of this architecture.
图1显示了此体系结构的逻辑模型视图。
We are mixing model and view logic.
我们正在混合模型和视图逻辑。
The logical model view decomposes the functional underpinnings of an SOA solution.
该逻辑模型视图对SOA 解决方案的功能基础进行了分解。
Application directories with subdirectories for model, view, and controller.
应用程序目录,包括模型、视图和控制器的子目录。
To this, we pass the view, the data model, and a list of the namespaces used.
我们向该实例传递视图、数据模型和所用的名称空间的列表。
The first article introduces general product traceability by providing a complete component model view.
第一篇文章提供完整的组件模型视图,介绍产品可跟踪性的基本知识。
This is also visualized in the model Properties view (Figure 13).
这也可以在模型属性视图中看到(图13)。
The general design of the application is to remove the coupling of the view from the model.
这个应用程序的设计原则是消除视图和模型之间的耦合。
Most importantly, XForms splits a form's data model, view, and controller.
最重要的是,XForms分隔表单的数据模型、视图和控制器。
Figure 1 shows the SOA Foundation Reference Architecture logical model view.
图1显示了SOAFoundation参考体系结构逻辑模型视图。
The Properties view of the model will look like Figure 2.
模型的Properties视图如图2所示。
You've seen how Monkeybars splits things up into model, view, and controller.
您已经看到了Monkeybars如何划分模型、视图和控制器。
In the init method, you can set up the view and model objects you will use in the subsequent actions.
在init方法中,可以设置将在后续操作中使用的视图和模型对象。
To illustrate these limitations, you'll create a Location with model, view, and controller.
为了说明这些限制,要创建带有模型、视图和控制器的Location。
应用推荐