By setting these values, you set default values for each property.
通过设置这些值,可以设置每个属性的默认值。
Optionally, you can set default values if they are not given by the schema validation, as shown in Listing 15.
如果模式检验没有提供默认值,还可以设置默认值,见清单15。
One useful application of this ability involves using the validator to automatically set default values for certain fields if they're not present in the POST submission.
这个功能的一个有用的应用是:如果某些字段没有出现在POST提交中,可以使用验证器自动设置这些字段的默认值。
Constructors enable the programmer to set default values, limit instantiation, and write code that is flexible and easy to read.
构造函数使得程序员可设置默认值、限制实例化以及编写灵活且便于阅读的代码。
Constructors enable the programmer to set default values, limit instantiation, and write code that is flexible and easy to read.
构造函数使得程序员可设置默认值、限制实例化以及编写灵活且便于阅读的代码。
应用推荐