问答题922/1475【Promise第23题】下面代码的输出是什么?

1Promise.resolve('1') 2 .then(res => { 3 console.log(res) 4 }) 5 .finally(() => { 6 console.log('finally') 7 }) 8Promise.resolve('2') 9 .finally(() => { 10 console.log('finally2') 11 return '我是finally2返回的值' 12 }) 13 .then(res => { 14 console.log('finally2后面的then函数', res) 15 }) 16
难度:
2022-01-09 创建

赞赏支持

预览

题库维护不易,您的支持就是我们最大的动力!