setTimeout(() => { console.log(1) }, 20) console.log(2) setTimeout(() => { console.log(3) }, 10) console.log(4) console.log('AA') for (let i = 0; i < 9000000; i++) { // do soming } console.timeEnd('AA') console.log(5) setTimeout(() => { console.log(6) }, 8) console.log(7) setTimeout(() => { console.log(8) }, 15) console.log(9)
2 4 AA Timer 'AA' does not exist 5 7 9 undefined 3 1 6 8答案为什么不是
2 4 AA Timer 'AA' does not exist 5 7 9 undefined 6 3 8 1
全部评论
(1) 回帖