Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何打破循环,直到变量'i'满足'i'应该在某个值的条件。休息后,等待 1 分钟,然后再次运行相同的循环。
从这个开始:
var timer = setInterval(function () { doTask() }, 60000); function doTask() { while (condition) { } }