这个文件将URL映射到回调函数。
同时我也附加了一个回调函数。
在回调函数中处理服务器的响应。
回调函数是异步api的标准结构。
The callback function is a standard construct in asynchronous APIs.
在这个请求中,还定义回调函数。
As a part of the request, the callback function is also defined.
您仅需要添加一个回调函数。
一个回调函数,在语句成功执行时调用。
A callback function invoked if the statement is executed successfully.
设置xhr回调函数。
那么回调函数中有什么?
然后脚本定义回调函数。
传递一个URL和命名回调函数的字符串。
You pass in the URL and a string naming the callback function.
的方法和一个回调函数。
代码的第二个添加涉及一个回调函数的注册。
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.
该属性允许指定一个回调函数。
接口中再也没有实现回调函数。
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.
此外,还会调用事务函数并向其传递一个回调函数。
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 a result set.
代码中包含服务成功响应异步请求时调用的回调函数。
This code includes a callback function when your service responds successfully to your asynchronous request.
当调用由其他应用程序定义的回调函数时会发生什么?
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.
随后,设置负责处理XML元素开始和结束的回调函数。
Then, set callback functions, which are responsible for handling the start and end of XML elements.
清单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.
这种方法依赖于接受回调函数名作为请求参数的远程服务。
This approach relies on the remote service accepting a callback function name as a request parameter.
此外,如果您向服务请求JSON数据,还可指定回调函数。
Moreover, you can also specify a callback function if you request JSON data from the service.
我们可以在同一个代码块中定义回调函数,但是使用一个名称。
We could define the callback function in the same code block, but with a name.
如果需要的话,您还可以传递一个可选的数据对象和回调函数。
You can pass an optional data object and callback function if you need them.
应用推荐