Q(Q框架)是什么意思? (异步 javascript 框架)
what does Q( Q framework) mean? ( the asynchronous javascript framework)
Q framework 非常有名(github 上有超过 7k 星),谁能告诉我 Q 是什么意思?
我用谷歌搜索并查看了它的官方文档,但没有找到任何线索...
文档中对此进行了相当多的解释。
The callback approach is called an “inversion of control”. A function that accepts a callback instead of a return value is saying, “Don’t call me, I’ll call you.”. Promises un-invert the inversion, cleanly separating the input arguments from control flow arguments. This simplifies the use and creation of API’s, particularly variadic, rest and spread arguments.
您可能想阅读更多有关 callback hell and how that relates to using control flow libraries like Q, and how Promises 融入的内容。
Q framework 非常有名(github 上有超过 7k 星),谁能告诉我 Q 是什么意思?
我用谷歌搜索并查看了它的官方文档,但没有找到任何线索...
文档中对此进行了相当多的解释。
The callback approach is called an “inversion of control”. A function that accepts a callback instead of a return value is saying, “Don’t call me, I’ll call you.”. Promises un-invert the inversion, cleanly separating the input arguments from control flow arguments. This simplifies the use and creation of API’s, particularly variadic, rest and spread arguments.
您可能想阅读更多有关 callback hell and how that relates to using control flow libraries like Q, and how Promises 融入的内容。