Function callback when an assertion fails.
断言失败时的函数调用。
We didn't specify which function callback would be applied as the second argument, just that a function callback would be applied.
我们并没有指定哪个回调函数会被用作第二个参数,只需要是一个回调函数就可以了。
We could define the callback function in the same code block, but with a name.
我们可以在同一个代码块中定义回调函数,但是使用一个名称。
The arguments to this callback function include a transaction handle and an error object.
该回调函数的参数包括一个事务句柄和一个错误对象。
All you add is a callback function.
您仅需要添加一个回调函数。
You can pass an optional data object and callback function if you need them.
如果需要的话,您还可以传递一个可选的数据对象和回调函数。
The arguments to this callback function include a transaction handle and a result set.
这个回调函数的参数包含一个事务句柄和一个结果集。
This means that you must put any dependent code inside the callback function, or inside functions that are called by the callback function.
这意味着您必须将任何依赖代码放在回调函数内,或者放在由回调函数调用的函数内。
We could define the callback function somewhere else in the code so we know it's available.
我们可以在代码中的其他位置定义回调函数,因此我们知道它可用。
This approach relies on the remote service accepting a callback function name as a request parameter.
这种方法依赖于接受回调函数名作为请求参数的远程服务。
This code includes a callback function when your service responds successfully to your asynchronous request.
代码中包含服务成功响应异步请求时调用的回调函数。
Within the callback function, the returned data can be processed.
在该回调函数内,可能处理返回的数据。
Pointer to the callback function to be invoked (for one or more event Types) — for each specific event, register a callback function, and then these functions are called when the event occurs.
指向要调用的回调函数的指针(对于一种或多种事件类型)——为每种特定的事件注册一个回调函数,然后将在事件发生时调用这些函数。
To do this, make a HEAD request and then check for a 404 error in your callback function; Listing 11 shows a sample callback.
要实现这种功能,生成一个HEAD请求,然后在回调函数中检查404错误;清单11给出了一个简单的回调函数。
So what's in the callback function?
那么回调函数中有什么?
The second addition to the code concerns the registration of a callback function.
代码的第二个添加涉及一个回调函数的注册。
A callback function invoked if the statement is executed successfully.
一个回调函数,在语句成功执行时调用。
I've also attached a callback function.
同时我也附加了一个回调函数。
Deal with the server's response in the callback function.
在回调函数中处理服务器的响应。
The transaction function is called, and a callback function is passed to it.
此外,还会调用事务函数并向其传递一个回调函数。
You pass in the URL and a string naming the callback function.
传递一个URL和命名回调函数的字符串。
Listing 4 shows the callback function for the HTTP GET version function.
清单4显示了HTTPGET版本函数的回调函数。
As a part of the request, the callback function is also defined.
在这个请求中,还定义回调函数。
Now define the callback function using the source code shown below.
现在,用如下所示的代码来定义这个回调函数。
This callback function will be invoked after the Worker script executes.
这个回调函数将在该worker脚本执行后调用。
的方法和一个回调函数。
Each callback function takes no arguments and returns Unit.
每一个回调函数都不接受参数,并且返回unit。
This code registers a callback function called cbfunc().
这个代码注册一个名为 cbfunc() 的回调函数。
This function provides the same processing as do_auditing2 but changes the callback function slightly.
这个函数提供的处理与do_auditing 2相同,但略微修改了回调函数。
If a callback function is provided, this function sets the onreadystatechange property of the XHR object to that callback function.
如果提供了回调,那么这个函数将XHR对象的onreadystatechange属性设置为这个回调函数。
应用推荐