Two questions:
How is the value returned from setInterval
and setTimeout
(the ones used to clear the timers) calculated?
Is it possible for both the functions to return the same value during runtime?
For example:
var a = setInterval(fn1, 1000);
var b = setTimeout(fn2, 1000);
Is it possible for a
and b
to have the same value?
The first one is more of a for-my-knowledge question, but the second one is more important.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…