This function usually performs some initialization routines such as setting default values of class properties.
该函数通常执行一些初始化例行程序,比如,设置类属性的默认值。
This is useful when you are setting default values for properties such as row height.
当设定属性(例如资料列高度)的预设值时,这会相当实用。
Below are two examples of setting default values in a constructor and are equivalent in functionality.
下面我们有两个在构造函数中设置默认值的例子,它们在功能上是等同的。
Setting default styles for the JSF components.
为JSF组件设置默认样式。
Setting default values in prefilled UI fields.
设置预填ui字段的默认值。
Setting default values for data fields.
设置数据字段的默认值。
Setting default parameters for functions in Bash are always a bit verbose, though.
不过,在Bash中设置函数的缺省参数始终有点麻烦。
Setting default parameters for functions in Bash are always a bit verbose, though.
不过,在Bash中设置函数的缺省参数始终有点麻烦。
应用推荐