如何每 30 分钟更新一次动态磁贴(赢 8 个应用程序)



如何每 30 分钟更新一次动态磁贴(赢 8 个应用程序)?(JavaScript)

我有函数"UpdateIt()"并更新我的磁贴。所以问题 - 我如何在后台执行这个函数?

谢谢

var changetitletimer = setInterval(function() { UpdateIt(); } , 1800000);
/* 1800000 is the value for 30min in milliseconds */

如果您想停止它:

clearInterval(changetitletimer);

最新更新