更新完成之后,您的代码应该类似于清单5。
更新完成。请点击“确定”以继续。
如果更新完成之后到达100毫秒,则忽略它。
If the 100 milliseconds timer goes off after everything has been updated, ignore it.
And we won't wait here one hundred seconds for it to finish, but we're using the loop, we're updating a variable, and we're formatting it in a nice way.
我们将不会再这里等待100秒来等它完成,但是我们使用循环,我们更新一个变量,我们把它排成一个漂亮的格式。
应用推荐