回调函数是异步api的标准结构。
The callback function is a standard construct in asynchronous APIs.
您仅需要添加一个回调函数。
然后脚本定义回调函数。
这个文件将URL映射到回调函数。
同时我也附加了一个回调函数。
在回调函数中处理服务器的响应。
该属性允许指定一个回调函数。
在接收到响应后,调用回调函数。
When a response is received, the callback function is invoked.
在这个请求中,还定义回调函数。
As a part of the request, the callback function is also defined.
接口中再也没有实现回调函数。
There are no more callbacks to implement as part of an interface.
这些回调函数的细节将在下面两个小节中讲解。
Details of these call back functions are described in the following two sections.
在该回调函数内,可能处理返回的数据。
Within the callback function, the returned data can be processed.
一个回调函数,在语句成功执行时调用。
A callback function invoked if the statement is executed successfully.
设置xhr回调函数。
那么回调函数中有什么?
传递一个URL和命名回调函数的字符串。
You pass in the URL and a string naming the callback function.
代码中包含服务成功响应异步请求时调用的回调函数。
This code includes a callback function when your service responds successfully to your asynchronous request.
代码的第二个添加涉及一个回调函数的注册。
The second addition to the code concerns the registration of a callback function.
定义回调函数,以处理通信状态和响应数据。
Define a call-back function to process the communication states and the response data.
此外,还会调用事务函数并向其传递一个回调函数。
The transaction function is called, and a callback function is passed to it.
它的参数是回调函数:一个用于成功,一个用于失败。
Its parameters are callback functions: one for success, and one for failure.
该回调函数的参数包括一个事务句柄和一个错误对象。
The arguments to this callback function include a transaction handle and an error object.
之后,请求也设置好了,回调函数也已分配,请求亦发送完毕。
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 a result set.
当调用由其他应用程序定义的回调函数时会发生什么?
What happens when you invoke callback functions defined by other applications?
清单4显示了HTTPGET版本函数的回调函数。
Listing 4 shows the callback function for the HTTP GET version function.
这些例程通常称为回调函数,因为在操作发生时会反向调用它们。
These routines are typically named callback functions, as they're called back to work upon some action.
清单6显示的是小部件样例的事件处理函数和回调函数。
Listing 6 shows the event handlers and the callback function of the sample widget.
注意,我们使用?作为回调函数名,而非真实的函数名。
Note that we put a? As the callback function name instead of a real function name.
随后,设置负责处理XML元素开始和结束的回调函数。
Then, set callback functions, which are responsible for handling the start and end of XML elements.
应用推荐