问答题970/1524【Promise第10题】下面代码的输出是什么?

1Promise.resolve().then(() => { 2 console.log('promise1'); 3 const timer2 = setTimeout(() => { 4 console.log('timer2') 5 }, 0) 6}); 7const timer1 = setTimeout(() => { 8 console.log('timer1') 9 Promise.resolve().then(() => { 10 console.log('promise2') 11 }) 12}, 0) 13console.log('start'); 14
难度:
2022-01-09 创建

赞赏支持

预览

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