Basically, whenever the last argument of a method is an array of objects, or a parameter declaration with a triple dot, you can pass multiple parameters to this method.
基本上,只要当一个方法的最后一个参数是一个对象数组,或者是一个有三个点的参数,你就可以向这个方法传入多重参数。
It takes a single parameter, a function, and applies the function to each element in the array.
它接受单个参数:一个函数,并将此函数应用于数组内的每个元素。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
The second parameter, a byte array, contains the message data.
第二个参数为字节数组,它包含消息数据。
If either one of those strings matches the parameter, then the appropriate array of lures is returned.
如果这两个字符串中有任意一个与参数相匹配,那么函数就会返回相应的鱼饵数组。
The third parameter is the name of the output array, and the fourth is an offset into the output array.
第三个参数是输出数组的名字,第四个是输出数组中的偏移。
The array of objects are the parameter values used for the constructor call.
该组对象是用于构造函数调用的参数值。
It takes a function as its parameter and applies the function sequentially to each object in the Array.
它使用一个函数作为它的参数,然后依次将这个函数应用到Array中的每个对象中。
If no additional roles are required, this parameter must be an empty array instead of null.
如果不需要任何额外的角色,那么该参数将为一个空数组,而不是null。
This does not apply to the comma separator, which is used in object literals, array literals, var statements, and parameter lists.
这不包括那些被用在对象定义,数组定义,var语句,和参数列表中的逗号分隔符。
Because the parameter groups is an array, it is possible to specify multiple groups, separating their names with commas.
因为参数groups是一个数组,所以可以指定多个组,组名之间用逗号分隔。
The input field invokes the wrapper function xajax_validateCatalogId with an array of form field values as a parameter.
输入字段调用包装器函数xajax_validatecatalogid,调用时以表单字段值数组作为参数。
Also, unlike the earlier examples, a class array in this scenario is included as an extra parameter to the intercept method.
此外,不同于先前的示例,此场景中的类数组作为附加参数被包含到了intercept方法中。
The GenericTemplate instance holds the basic type parameter information for the class, along with the array of fields defined for the class.
GenericTemplate实例包含类的基本类型参数信息,还有为类定义的字段的数组。
This Element array is the output parameter set for the invoker and is returned to the Axis server.
此Element数组是调用方的输出参数集,将返回到Axis 服务器。
The current parameter starts off as the first element in the array.
current参数的初始值是数组内的第一个元素。
The get() method of AppConfig can be used to get the value of an individual parameter; because the parameters of interest are always array references, I automatically de-reference them.
AppConfig 的get()方法可以用来得到各个参数的值;由于感兴趣的参数总是数组引用,我自动地对它们进行解引用。
Listing 5: Creating the parameter array and invoking the Web service.
清单5:创建参数数组和调用Web服务。
The superglobal array will contain fields with the CGI parameter values named according to the name attribute of the respective input field in the form.
superglobal数组将根据表单中各个输入字段的name属性,来包含带有指定cgi参数值的字段。
The record ids of the created records are returned back in the ids parameter as an array, and they are given back in the order in which they are passed in the parameter list.
已创建记录的记录id在ids参数中作为数组返回,数组中记录id的顺序与在参数列表中传送它们的顺序相同。
We set the trace option in an options array parameter, which we pass to the SoapClient constructor. We modify our use of the constructor to.
我们在options数组参数中设置trace选项,将该参数传递给SoapClient构造函数。
They take in a function as a parameter to use when a match is found. This function receives the match array as a parameter and returns a modified string that is used as a replacement.
你可以为preg_replace_callback指定某个函数为参数,此函数能接收匹配结果数组为参数,并将数组修改后返回,作为替换的结果。
I've tried the latter approach in Listing 6. (Note that filter takes a (t) : Booleanmethod, meaning it takes a single parameter of whatever type the array holds and returns a Boolean.)
我在清单6中采取了后一种方法(注意filter使用了一个(t):Boolean方法,意味着使用数组持有的任意类型的参数,并返回一个Boolean)。
But this code does not work — you cannot instantiate an array of a type represented by a type parameter.
但是这段代码不能工作——不能实例化用类型参数表示的类型数组。
It returns an array of domain objects that are children of the parameter element.
它将返回一组域对象,这些域对象是参数元素的子元素。
To allow for added arguments beyond those defined in the parameter array (either required values or variable length sets of values), I'll have the call return the actual number of arguments processed.
为了允许除形参数组中定义的实参之外额外的实参(要么是必需的值,要么是可变长度的值),我将令这个调用返回被处理实参的实际数量。
The Class reflection calls to access field information are similar to those used to access constructors, with a field name used in place of an array of parameter types.
获得字段信息的Class反射调用不同于那些用于接入构造函数的调用,在参数类型数组中使用了字段名。
This invoke method takes two arguments, which supply the class instance and an array of parameter values for the call.
这种invoke方法使用两个参数,为调用提供类实例和参数值数组。
The table's content, in the form of an array collection, is passed to the createColumns function as a parameter.
以数组集合的形式存在的表内容被作为参数传递给createcolumns函数。
Now, I'll take a shot at implementing the method that returns an array of factors for a given parameter, shown in Listing 11
现在,我将试着实现返回给定参数的因子数组的方法,如清单11 中所示
应用推荐