All you add is a callback function.
您仅需要添加一个回调函数。
So what's in the callback function?
那么回调函数中有什么?
I've also attached a callback function.
同时我也附加了一个回调函数。
This code registers a callback function called cbfunc().
这个代码注册一个名为 cbfunc() 的回调函数。
Deal with the server's response in the callback function.
在回调函数中处理服务器的响应。
You pass in the URL and a string naming the callback function.
传递一个URL和命名回调函数的字符串。
When a response is received, the callback function is invoked.
在接收到响应后,调用回调函数。
When this happens (5), Informix calls the callback function (6).
这种情况发生时(5),Informix调用回调函数(6)。
The callback function is a standard construct in asynchronous APIs.
回调函数是异步api的标准结构。
Now define the callback function using the source code shown below.
现在,用如下所示的代码来定义这个回调函数。
A callback function invoked if the statement is executed successfully.
一个回调函数,在语句成功执行时调用。
The callback function then uses the forEach method on the Array object.
该回调函数然后使用Array对象的forEach方法。
Listing 4 shows the callback function for the HTTP GET version function.
清单4显示了HTTPGET版本函数的回调函数。
This callback function will be invoked after the Worker script executes.
这个回调函数将在该worker脚本执行后调用。
You can pass an optional data object and callback function if you need them.
如果需要的话,您还可以传递一个可选的数据对象和回调函数。
The transaction function is called, and a callback function is passed to it.
此外,还会调用事务函数并向其传递一个回调函数。
We could define the callback function in the same code block, but with a name.
我们可以在同一个代码块中定义回调函数,但是使用一个名称。
The second addition to the code concerns the registration of a callback function.
代码的第二个添加涉及一个回调函数的注册。
Listing 6 shows the event handlers and the callback function of the sample widget.
清单6显示的是小部件样例的事件处理函数和回调函数。
The callback function gets a transaction object that it can use to execute SQL.
callback函数获得一个事务对象,用来执行SQL。
Then, your callback function can use that data, as seen in Listing 1 and Listing 4.
然后回调函数就可以使用这些数据,如清单1和 清单 4 所示。
When the service responds, the callback function in the Rich UI handler is invoked.
当此服务响应时,这个RichUI处理程序中的回调函数将被调用。
The arguments to this callback function include a transaction handle and a result set.
这个回调函数的参数包含一个事务句柄和一个结果集。
Then the request is set up, the callback function is assigned, and the request is sent.
之后,请求也设置好了,回调函数也已分配,请求亦发送完毕。
The arguments to this callback function include a transaction handle and an error object.
该回调函数的参数包括一个事务句柄和一个错误对象。
In my callback function I also add, somewhat superfluously, id attributes to my elements.
在回调函数中我也有些多余地为元素增加了id属性。
We could define the callback function somewhere else in the code so we know it's available.
我们可以在代码中的其他位置定义回调函数,因此我们知道它可用。
A callback function is passed to the method when it is invoked to capture the return value.
当该方法被调用来获取返回值时,一个回调函数会传递给此方法。
Moreover, you can also specify a callback function if you request JSON data from the service.
此外,如果您向服务请求JSON数据,还可指定回调函数。
This state object is passed to your timer callback function during each timer event invocation.
在每一个定时器事件被调用时该state对象作为一个参数传递给你的定时回调函数。
应用推荐