网站介绍:文章浏览阅读1k次。// 核心部分COREconst when = require('when');// 1.使用when直接构造一个promiseconst test1 = when(1);test1.then(d => {console.log('1 == ', d);});// 2.when构造的promise成功时自动调用函数const test_nodejs when
- 链接地址:https://blog.csdn.net/u013571243/article/details/53760660
- 链接标题:nodejs when 核心部分使用-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:7943
- 网站标签:nodejs when