有人可以解释为什么以相反的顺序打印吗?
代码:
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
有人可以解释为什么以相反的顺序打印吗?
代码:
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