Which of the following scripts execute the fastest when repeating: setInterval, for loops, or while loops?

后端 未结 0 1674
不知归路
不知归路 2020-12-14 01:13

Which code re-executes the code the fastest:

setInterval(function() {/* The Code */}, 0);  

or

for(var i = 1; i > 0; i++) {         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题