类似地,在函数的末尾,如果您知道应该有某些后置条件,那就编写对应于各项条件的断言。
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?
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?
我们抵达花括号了,这是函数的末尾了,一旦到了那个地方,在下一行,然后返回到main函数中,在main中哪里开始执行?
应用推荐