在screen . h中,添加函数定义。
设计要向其添加函数的查询。
添加函数就像将新类添加到任何其他项目类型一样。
Adding a function is just like adding a new class to any other project type.
接下来,为了接收这个表单发布,向Student控制器添加函数update();代码如清单19 所示。
Next, to receive the form post, add the function update() to the Student controller; the code is shown in Listing 19.
不过,为了简单起见,我将自己的新函数添加到现有的源文件中。
However, for the sake of simplicity, I add my new functions to an existing source file.
这种方法要求我为添加的每个函数编写单元测试,并且要维护这些测试。
This methodology requires that I write unit tests for every function I add, and that I maintain those tests.
您可以执行多个函数,如添加自定义代码或调用关系映射。
You can perform several functions, such as add custom code or invoke relationship mapping.
如果在安装处理程序时总是添加这个函数,那么就永远不必担心您的处理程序会破坏事件处理系统中的其他部分。
If you always add a function like this to install your handlers, you never have to worry about your handlers clobbering other parts of the event-handling system.
这些定制可包括添加缺失的函数映射、修改昵称列的数据类型以及设置某些与性能相关的选项。
Such customization can include adding missing function mappings, altering the data type of a nickname column, and setting some performance-related options.
可以使用这个函数添加样式表的路径以及相关联的媒体类型。
This function lets you add a path to your stylesheet and the media type associated with it.
只要从生成的c中复制并粘贴相关函数,添加有魔力的覆盖行并编辑该代码,直到它如您所愿。
Simply copy and paste the relevant function from the generated c, add the magic override line, and edit the code until it does what you want.
清单4演示了添加问题报告的完整函数。
Listing 4 illustrates the complete function to add a problem report.
此外,所调用的函数的名称将输出到命令行,通过这种方式,模板即可为各函数添加简单的日志。
In addition, the template adds simple logging to each function by printing out to the command line the name of the function called.
新方法则被添加到包含所有函数的局部类。
The new method is added to the partial class that contains all of your functions.
添加新函数。
您看到了四个函数示例,您可以扩展、修改并添加新的函数以便帮助您更好地满足您自己的要求。
You saw four examples of functions, to which you can extend, modify, and add new functions to help you better match your own requirements.
还可以在内核中添加新函数;新函数在原来的内核中没有对等的实现。
You can also add new functions to augment the kernel; new functions simply have no counterparts in the original kernel.
例如,如果要检查一个文件I/O函数,可以把正在写的文件的名称添加到函数的探测中。
For example, if you were instrumenting a file I/O function, you might add the name of the file being written to the probe for that function.
如果您想支持其他查询,向fetch函数添加任何您需要的逻辑。
If you want to support other queries, add whatever logic you need to the fetch function.
通过调用help方法,向定制函数添加帮助。
Add help to your custom function by calling the help method.
实际上,在添加data函数(如下所示)之前,通常都必须将所需信息压缩到一个可用变量内。
In fact, before the data functions were added (see below), you usually had to squeeze the information you needed into one of the available variables.
将回调函数添加到Sajax函数调用中,就可以得到头(head)。
就我个人而言,获悉jQuery之前,若想添加ajax函数往往需要大量工作。
Personally, I know that before jQuery, the idea of adding Ajax functions everywhere seemed like a lot of work.
如果Joe需要在脚本中删除或更新雇员,就只需要添加另一函数。
If Joe wants to remove an employee or update an employee in his script, all he needs to do is add another function.
在screen . h中添加以下函数定义。
在这里,还可以添加其他函数名以支持HTTP的POST、PUT和DELETE方法。
Here, you can also add other function names to support POST, PUT, and DELETE methods of HTTP.
只需将代码textDiv.contentEditable="true";添加到函数的末尾。
Simply add the code textDiv.contentEditable="true"; to the bottom of the function.
然而,Out putFor mat类则具有多个更必要的函数,如用来添加各种几何形状的函数。
The OutputFormat class has a few more required functions, however - functions to add various types of geometric shapes.
接下来,在第209行中添加这些函数定义。
您仅需要添加一个回调函数。
应用推荐