Call setTimeout without delay

后端 未结 5 1045
闹比i
闹比i 2020-12-05 04:07

Quite often see in JavaScript libraries code like this:

setTimeout(function() {
    ...
}, 0);

I would like to know why use such a wrapper

5条回答
提交回复
热议问题