I am using setInterval(fname, 10000);
(我正在使用setInterval(fname, 10000);
)
to call a function every 10 seconds in JavaScript. (在JavaScript中每10秒调用一次函数。)
Is it possible to stop calling it on some event? (是否可以在某个事件中停止调用它?)
I want the user to be able to stop the repeated refresh of data.
(我希望用户能够停止重复刷新数据。)
ask by cnu translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…