You can work around this problem by defining a row as you pass the arguments to the function.
可以通过在向函数传递参数时定义一行来解决这个问题。
This article assumes that you have some experience using PHP already and can use a function to pass a variable and return a result.
本文假设您已经具有一些使用PHP的经验,并能够使用函数来传递变量并返回结果。
We then extract the name of the changed property, the new value, and pass that into a function that sets the value through reflection (see listing 7).
然后提取已变更的属性的名称和新的值,并将它们传递给一个函数,该函数通过反射对值进行设置(见清单7)。
You must call this function and pass it the arguments your program was invoked with before any other GTK + call is made.
在进行其他GTK +调用之前,必须调用这个函数,并把调用程序使用的参数传递给它。
Pass this to a function called search to compare it against the feed ID passed into the method.
把服务ID传递给搜索函数来将其与传递给方法的提要ID相比较。
We first walk the tree and pass a function that merely prints the node being visited and returns the node.
我们首先遍历树,传递一个仅打印所访问的节点并返回该节点的函数。
For instance, if you pass a 32-bit value to a function expecting a 16-bit value, and the value is in range, the function may never notice the extra bytes.
举例来说,如果您将一个32位的值传递给一个期望16位值的函数,而且所传递的参数值也在正确范围之内,那么这个函数就永远不会注意到多出来的字节。
Notice that the map you pass to the extend function maps from keywords to anonymous functions.
请注意将您传递到extend函数的映射从关键字映射到匿名函数。
To check for support for a particular codec, you can pass an identifying string to the canPlayType function.
为了检测对特定的一个编解码的支持,可以向canplaytype函数传递一个识别字符串。
However, the variable representing the input field value that you pass to the WMLScript function is not initialized until you enter a value in the input box.
然而,直到输入一个值到输入框以后,您传递到WMLScript函数的代表输入域值的那个变量才开始被初始化。
You then pass the results to CouchDB's emit function.
然后,您可以将结果传递给CouchDB 的emit函数。
Invoke the getopt.getopt function and pass it the required parameters.
调用getopt . getopt函数并把必需的参数传递给它。
Due to the functional nature of the API, it is necessary to pass a function (method) to many of these operations so that it can be performed on each item in the ParallelArray.
由于API的函数特性,传递一个函数(方法)给这些操作很有必要,这样就可以在ParallelArray中的每个项目上执行它。
For the error callback function, you pass a simple closure that simply displays the error information.
如果callback函数失败,就传递一个显示失败信息的终止参数。
The function GetParameterDoc locates or creates a document to pass information to the agent.
函数GetParameterDoc查找或创建一个文档来向代理传递信息。
Though you can pass another closure to it, instead pass it a reference to another function called addEmployee.
尽管您可以传递另一个闭包给它,而不是将其作为一个引用传递给另一个名为addemployee的函数。
To pass this data back, the postMessage function is called, which will invoke the onmessage callback function on the worker, as shown back in Listing 9.
为了将此数据传递回去,调用了 postMessage函数,由该函数在这个worker上调用onmessage回调函数,如清单 9中所示。
To change state, you pass a function to the agent and it evaluates a stream of these functions, replacing the state with the output of each function.
要更改状态,您可以向agent传递一个函数,然后agent评估功能流,用每个函数的输出替换状态。
To access the preventDefault function, you must pass the handler event through as a parameter and use it to access the function.
要访问preventdefault函数,您必须传递处理函数(即使作为一个参数)或者使用它访问该函数。
To create a filesystem with fuse, you need to declare a structure variable of type fuse_operations and pass it on to the fuse_main function.
要使用fuse来创建一个文件系统,您需要声明一个fuse_operations类型的结构变量,并将其传递给fuse_main函数。
In the init function, called when the body of the document is loaded, you define static data (the report data) and pass it to the graph function.
在init函数(在文档主体加载时调用)中,您定义静态数据(报告数据)并将其传递到graph函数。
Then, to pass the result back, you can use a JNI helper function called NewStringUTF .
然后,为了传回结果,你可以使用一个叫作newstringutf的JNIhelper函数。
You can use the square brackets () that you encountered earlier to pass arguments to the lambda function.
可以使用前面的方括号()把参数传递给lambda函数。
It is clear that your throwit function cannot pass the dynamic type of the object to the throw expression.
非常明显,你的throwit函数不能把对象的动态类型传给抛出表达式。
For the function in Listing 2, extract the data property of the event, as this is the actual data sent by the thread, and pass it to another function for updating the UI.
对于清单2中的这个函数,提取event的data属性,因为这是被线程发送的实际数据,然后将它发送给另一个函数来更新ui。
Each function (with the exception of the generic show and hide functions) allows you to pass in a speed and a function to call when the effect is complete.
每个函数(除了通用的show和hide函数之外)都允许在效果完成时传入要调用的速度和函数。
Just turn on the change-tracking function and pass the document from one contributor to the next.
只需打开变化跟踪功能并且将文档从一个贡献者传递到下一个贡献者。
The input in this example is a simple string, so you populate the argument array with a string and pass it to the invoke function.
此示例中的输入是一个简单的字符串,因此将使用字符串填充参数,并将其传递给调用函数。
The input in this example is a simple string, so you populate the argument array with a string and pass it to the invoke function.
此示例中的输入是一个简单的字符串,因此将使用字符串填充参数,并将其传递给调用函数。
应用推荐