完成年龄字段后,可能希望指定对名字字段的长度加以限制。
Once you have the age field sorted out, you might want to specify length restrictions on the first-name field. You could code this validation as follows.
该新软件也可以将名字字段扩展为16到32个字。
The new software also expands name field from 16 to 32 characters.
我们可以在register方法中添加验证代码,以确定名字字段是否为null。
We could add validation code to the register method to determine whether the first-name field is blank or null.
应用推荐