我们以此为例说明如何在模板文件中使用不同的数据对象和辅助函数。
We include it as an example of how to use different data objects and helper functions within a template file.
一旦构造了实例,您就可以在您的PurchaseOrder对象上调用invoice和manifest函数,其使用在defrecord 中提供的实现。
Once the instance is constructed, you can call the invoice and manifest functions on your PurchaseOrder object, which uses the implementations provided in the defrecord.
这包括执行CLR过程和函数的引擎支持,使用DB2Context对象的托管提供程序支持,以及VisualStudioAD工具。
This included engine support where the CLR procedures and functions are executed, managed provider support using the DB2Context object, and the Visual Studio AD tools.
项和对象默认将它们的发布日期设置为当前时间(使用PHPtime函数)。
Entries and objects will set their published date to the current date (using the PHP time function) by default. Listing 6 shows the base class for entries.
这需要使用全局的用户数据对象($user)和 user_access函数。
The global user data object ($user) and the user_access function are used to accomplish this.
要使用一个等价的基于Linux的模块,您需要用新模块的等价类替换所有导入语句以及所有称为函数和变量的对象。
To use an equivalent Linux-based module, you need to replace all import statements as well as any called functions and variables with the equivalents of the new module.
可以使用非模态的设计程序创建和删除数据库对象,例如表、视图、存储过程和函数。
You can create and delete database objects such as tables, view, stored procedures, and functions using non-modal designers.
一个函数创建一个XHR对象,可以使用这个对象与中间层服务交换(发送和接收)应用程序信息。
One is to create a XHR object that can be used to exchange (send and receive) application-specific information with the mid-tier service.
注意,尽管此函数不在 $(document).ready() 函数内,但是它仍然使用jQuery对象和方法。
Notice that although this function is not within the $(document).ready() function, it still uses jQuery objects and methods.
使用这些函数,我们可以转换和导出对象结构,还可以使用json_encode使来自PHP数据库连接的数据可用于Ajax应用程序。
Using these functions, we can convert and export our object structures and make data from our PHP database connections available to our Ajax applications using json_encode .
本文有点试验性质,因为它从Bash和PHP谈到了过程、面向对象,并在最后谈到了使用相同基本代码的函数式python。
This article was somewhat experimental, as it went from Bash and PHP, to procedural, object-oriented, and finally functional Python using the same basic code.
VisualStudio 2003允许使用分步向导方便地创建DB 2数据库对象,如表、视图、存储过程、CLR存储过程、函数、索引和触发器。
Visual Studio 2003 made step-by-step wizards available to help you easily create DB2 database objects such as tables, views, stored procedures, CLR stored procedures, functions, indexes, and triggers.
同时假定Collaborator对象要求使用字符串和原始的int作为传递给构造函数的参数。
Also suppose that the Collaborator object requires a string and a primitive int as parameters passed to the constructor.
前面曾使用过odbc_exec函数,它接受了一个连接对象和一个sql字符串,执行该函数后,会返回一个结果集对象。
You've used odbc_exec already; it takes in a connection object and an SQL string, fires it all off, and returns a result set object.
如果不使用这两个选项,try和catch代码仍然可以执行,并且系统执行到throw语句时才会调用局部对象的析构函数。
Without either of these options, the try and catch code can still execute, and the system does not call the destructors of local objects up to the throw statement.
容器看到构造函数需要一个IAccountRepository和一个ILogger实例,因此它创建了那些对象(使用先前指定的特定类型)并通过构造函数传递给AccountTransfer实例。
The container sees that the constructor requires an IAccountRepository and an ILogger, so it creates those (using the concrete types previously specified) and passes them to the constructor.
它被设计成一个简单的和直觉的程序界面来对普通使用的GUI工具对象的函数进行访问。
It is designed to be a simple and intuitive programming interface to access the functionality of commonly used GUI toolkit objects.
解释如何使用构造函数创建具有属性和方法的对象。
Explains how to use constructor functions to create objects with properties and methods.
阐释如何使用继承将一组通用属性和方法添加到用给定构造函数创建的对象。
Illustrates how to use inheritance to add a common set of properties and methods to objects created with a given constructor function.
当你使用闭包时,记得包含函数的调用对象,包括所有的函数参数和本地变量,会有跟闭包一样的存活时期。
When you use a closure, remember that the call object of the enclosing function, including all function arguments and local variables, will last as long as the closure does.
可使用“类视图”或对象浏览器导航项目类结构,包括函数、继承和接口。
You can navigate a project class structure, including functions, inheritance and interfaces using either class View or the Object Browser.
你将使用对象、函数、条件和控制结构来构成将显示在简历上的内容。
You will use objects, functions, conditionals, and control structures to compose the content that will display on the resume.
构造函数提供了一种能力,使用户能设计和实现自己的基于原型的对象。
Constructor functions (also called constructors) provide the ability to design and implement your own prototype-based objects.
使用指定的程序集文件和与指定参数匹配程度最高的构造函数来创建指定名称的COM对象的实例。
Creates an instance of the COM object whose name is specified, using the named assembly file and the constructor that best matches the specified parameters.
提供创建使用表值对象(如表值函数和视图)的查询的步骤。
Provides steps for creating queries that use table-valued objects, such as table-valued functions and views.
使用命名的程序集文件和默认构造函数,创建指定名称的COM对象的实例。
Creates an instance of the COM object whose name is specified, using the named assembly file and the default constructor.
使用命名的程序集文件和默认构造函数,创建指定名称的COM对象的实例。
Creates an instance of the COM object whose name is specified, using the named assembly file and the default constructor.
应用推荐