在这些情况下,因为编译器和执行阶段提供了强式型别检查,程序码将会变得更强固。
In these cases, the code will be more robust because of the strong type checking that is provided by the compiler and runtime.
当您的程序码执行时,可以检查档案的特性,例如名称、大小和MIME类型,接著您就可以储存它。
When your code runs, you can examine the characteristics of the file, such as its name, size, and MIME type, and you can then save it.
不过,其他类型的错误则会要求您侦错程序码,即在程序码执行期间对其进行检查,以验证执行路径和资料是正确的。
However, other types of errors require that you debug your code - that is, that you examine the code while it is running to validate that the execution path and data is as it should be.
应用推荐