current position:Home>JavaScript notes

JavaScript notes

2022-05-15 02:06:27thankseveryday

Pause JavaScript perform :

function sleep(ms) {
    
     for(var t = Date.now();Date.now() - t <= ms;);
 }
 sleep(200);

copyright notice
author[thankseveryday],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/132/202205120527258149.html

Random recommended