DOM refresh on long running function

后端 未结 12 2297
醉话见心
醉话见心 2020-11-27 20:54

I have a button which runs a long running function when it\'s clicked. Now, while the function is running, I want to change the button text, but I\'m having problems in some

12条回答
  •  遥遥无期
    2020-11-27 21:29

    DOM buffer also exists in default browser on android, long running javascript only flush DOM buffer once, use setTimeout(..., 50) to solve it.

提交回复
热议问题