回调函数 - 翻译成英语

callback function
回调 函数
回拨 功能
callback
回调
回拨
回呼
callback functions
回调 函数
回拨 功能

在 中文 中使用 回调函数 的示例及其翻译为 英语

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
在上面的代码中,函数的一部分(err,db)被称为匿名或回调函数的声明。
In the above code, the part of the function(err, db) is known as the declaration of an anonymous or callback function.
尽管完全用C写成的,但它是基于类和回调函数(指向函数的指针)的思想实现的。
Although written completely in C, it is implemented using the idea of classes and callback functions(pointers to functions).
在本教程中,你将学习如何为jQuery效果定义回调函数
In this tutorial you will learn how define a callback function for the jQuery effect.
你的代码向URL发送请求,当请求完成时,可以触发回调函数来处理响应。
Your code sends a request to a URL, and when the request completes, a callback function can be triggered to handle the response.
通常使用了两个或更多数组时,它们的长度应该相同,因为回调函数是平行作用于相应的单元上的。
Usually when using two or more arrays, they should be of equal length because the callback function is applied in parallel to the corresponding elements.
注意:如果没有initialValue参数,reduce从index为1开始执行回调函数,跳过第一个index。
Note: If initialValue isn't provided, reduce will execute the callback function starting at index 1, skipping the first index.
上面所举排序函数一例,可以把回调函数地址换成窗口handle。
One example cited above sorting function, the callback function address can be replaced by the window handle.
表示它们的字段和回调函数会在得到的C++头文件和代码文件中自动生成。
Fields and callbacks that represent these will be automatically generated in the resulting C++ header and code files.
回调函数本身可以返回promise,使我们可以有效地链接promises。
The callback itself can return a promise, and thus we can effectively chain promises.
你的模块调用回调函数查询用户,检查他们的应答并生成Subject。
Your module invokes callbacks to query the user, checks their response and generates a Subject.
回调函数是指令式的,Promise是函数式的:Node错失的最大机会.
Callbacks are imperative, promises are functional: Node's biggest missed opportunity.
不久前我们都在写回调函数,后来出现了Promise/A+规范,紧接着是generator函数,到现在是异步函数(async)声明。
Not too long ago we just wrote callbacks, then the Promise/A+ specification emerged followed by generator functions and now the async functions.
例如,带有回调函数的jQueryslideToggle()效果方法的基本语法如下:.
For example, the basic syntax of the jQuery slideToggle() effect method with a callback function can be given with:.
但是由于回调函数,我们可以使它像异步编程语言一样工作。
But thanks to callback functions we can make it function like Asynchronous programming language.
这是最常见的情况:回调函数在URL中指定,并且我们可以完全控制它。
The callback function is specified in the URL and we can completely control it.
连续执行数个任务不会像只使用回调函数时那样创建嵌套的“金字塔(pyramid)”代码。
Performing several tasks in a row will not create nested"pyramid" code as you would get when using only callbacks.
因为没有闭包的话,实现像回调函数或者事件句柄这样的公共结构就会很困难。
Because without closures, it would be hard to implement common structures like callbacks or event handlers.
回调函数本身可以返回Promise,因此我们可以链式调用Promise。
The callback itself can return a promise, and thus we can effectively chain promises.
为了保持回调函数和错误处理整洁清楚,我们使用了Step来进行流程控制。
To keep the callbacks and error handling clean, we use Step for flow control.
回调函数本身也可以返回一个promise对象,所以我们能够链式调用promise。
The callback itself can return a promise, and thus we can effectively chain promises.
结果: 101, 时间: 0.021

单词翻译

顶级字典查询

中文 - 英语