Javascript progress bar not updating 'on the fly', but all-at-once once process finished?

前端 未结 4 1324
猫巷女王i
猫巷女王i 2020-12-07 03:15

I have a loop which should be updating a progress bar as the loop increments, however it\'s only colouring the progress bar in one go after the loop has actually finished. I

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 03:35

    Try increasing the time in your setTimeout period. When I had a similar issue, we used a gap of 200 milli seconds and it worked.

提交回复
热议问题