【发布时间】:2015-05-20 06:25:10
【问题描述】:
有人可以解释为什么会以相反的顺序打印吗?
代码:
when('test')
.then(function() {console.log('should be first');})
.then(console.log('should be second'));
输出:
should be second
should be first
PS:我用的是when.js版本:when@3.4.3
【问题讨论】:
标签: javascript promise when-js