The compiler will automatically supply the default argument value for the omitted argument.
编译器自动将默认实参的值提供给被忽略的实参。
The constructor examines each property in its parameters argument; for each one, if the property exists in the prototype, then its value overrides the parameter's default value.
构造方法在它的parameters参数中检查每个属性;对于每个属性,如果它存在于原型中,那么它的值覆盖参数的默认值。
Having two methods seems a bit wasteful. It would be nice if we could eliminate the second joiner method and declare that the separator argument in the first joiner has a default value.
写两个函数似乎有点浪费,如果我们能消除第二个joiner方法,在第一个jioner方法里为separator参数声明一个默认值,那就太好了。
Functions can have default arguments, as shown for the value argument of the compute function.
函数可以有默认参数,如compute函数的值参数所示。
You can use the line of code shown in Listing 6 to specify a default value for an argument that is absent.
您能够使用清单6中所示代码行来为缺失的参数指定默认值。
This handler prevents the default event (submitting the form) from being fired, sets the value of the extra ajax argument to 1, and makes an ajax Request using the original form for the URL and data.
这个处理程序阻止默认事件(提交表单)触发,将额外的ajax参数的值设置为1,使用原始表单发出一个ajax请求以获取URL和数据。
This is used to set a default value for a variable. If the variable is empty or unset, the given default value is printed instead. Default takes one argument.
此函式用在设定变数的预设值,如果变数的值是空白或尚未设定的话,则会列印出预设值,使用此函式时会预设需要一个参数。
Adding a new argument to an existing method, as long as the new argument has a default value so that code that already USES it doesn't give warnings or errors.
向现有方法添加新参数,只要心参数具有一默认值,这样一来,已使用该值得代码就不会发生错误或给出警告提示。
If the variable is empty or unset, the given default value is printed instead. Default takes one argument.
当变量为空或者未分配的时候,将由给定的默认值替代输出。
When you do this, you define a default value that the procedure USES if the argument is not supplied.
这么做就会定义在未提供引数的情况下,程序将使用的预设值。
The calling code supplied the argument with a value exactly equal to the parameter's default value.
调用代码提供的参数与参数的默认值完全相等。
The compiler simply inserts code to pass the default value whenever the function is called without an argument in that position.
编译器只是加入代码使得在每次函数被无参数调用的时候传递一个默认的值。
To set the default property value, use the variable name, with an argument list, on the left side of an assignment statement.
若要设置默认属性值,请在赋值语句左侧使用带有参数列表的变量名。
A procedure cannot detect at run time whether a given argument has been omitted or the calling code has explicitly supplied the default value.
过程在运行时无法检测到给定的参数是否已被省略,或者调用代码是否已显式提供默认值。
A procedure cannot detect at run time whether a given argument has been omitted or the calling code has explicitly supplied the default value.
过程在运行时无法检测到给定的参数是否已被省略,或者调用代码是否已显式提供默认值。
应用推荐