At the beginning of the function, you first need to stop setInterval qweqwe, and then start.
Now it only stops, but it does not start ...
function qweqwe() { clearInterval(qweqwe); qweqwe = setInterval(function() { ... }, 100); }
At the beginning of the function, you first need to stop setInterval qweqwe, and then start.
Now it only stops, but it does not start ...
function qweqwe() { clearInterval(qweqwe); qweqwe = setInterval(function() { ... }, 100); }
Source: https://ru.stackoverflow.com/questions/171596/
All Articles