类似地,在函数的末尾,如果您知道应该有某些后置条件,那就编写对应于各项条件的断言。
Similarly, at the end of the function, if you know that there are certain post-conditions that should hold, write assertions corresponding to each.
只需将代码textDiv.contentEditable="true";添加到函数的末尾。
Simply add the code textDiv.contentEditable="true"; to the bottom of the function.
我们抵达花括号了,这是函数的末尾了,一旦到了那个地方,在下一行,然后返回到main函数中,在main中哪里开始执行?
So we hit the curly brace so the very bottom of the function and as soon as you hit that, the next line in the story is well, then we return to main and where are we executing in main?
每个函数的末尾调用printData 函数,根据 $print类变量的值返回XHTML数据,或显示到浏览器。
The end of each function calls the printData function, and based on the value of the $print class variable the XHTML data will either be returned from the function or displayed to the browser.
数组函数append (arg)将arg添加到数组的末尾,从而在此过程中形成了一个列表。
The array function append (arg) adds arg to the end of the array, thus accumulating a list in the process.
在清单6中,第一个命令装入函数,第二个得到头(或第一个)元素,第三个命令得到末尾的头(或第二个)元素。
In Listing 6, the first command loads the function, the second command gets the head (or first) element, and the third command gets the head of the tail (or second element).
函数部分中所有以% %开头并延伸到文件末尾的文本将全部复制到生成的文件中。
All the text in this section starting with % % and, extending to the end of the file, is copied verbatim into the generated file.
这样做的好处已在函数末尾处的注释中提到:“在这里进行任何其他日志记录操作。”
The advantage to doing this is noted in the comment at the end of the function: "do any other error logging things here."
在教程的末尾,您将拥有自己的XQuery函数示例,它能够正常工作并且可以满足业务需求。
At the end of this tutorial, you will have a working example of an XQuery function and its applicability to a business requirement.
read函数返回读取的字节数(最高为您指定的最大值);或者 -1,表示错误;或者0,如果已经到达文件末尾。
The read function returns the number of bytes read (up to the maximum that you specify), -1 on error, or zero if the end of the file has been reached.
此函数从 Clojure特殊形式的loop 开始,它将为函数末尾处的recur创建一个目标。
This function starts with the Clojure special form loop, which creates a target for the recur at the end of the function.
在这个教程的末尾我们将产生一些真实的函数代码,并能够知晓每一步为什么那样做的原因(知其然,知其所以然)。
By the end of this tutorial we will have produced real functioning code, while knowing why we did each thing.
在这个教程的末尾我们将产生一些真实的函数代码,并能够知晓每一步为什么那样做的原因(知其然,知其所以然)。
By the end of this tutorial we will have produced real functioning code, while knowing why we did each thing.
应用推荐