因为所有通信都是异步的,所以您必须为每个Ajax事件定义唯一的变量。
Because all communications are asynchronous, you must define a unique variable for each Ajax event.
promise变量用来表示某些异步操作的结果。
A promise is a variable that represents the outcome of some asynchronous operation.
在“main”函数里的改变更有意思,在这里我们首先映射我们文件的了吧到一个异步工作流的列表上,并把它赋值给一个“tasks”标识符(即变量)。
The changes to the "main" function are more interesting, here first we map our list of files to a list of asynchronous workflow and bind it to the identifier "tasks".
应用推荐