【问题标题】:How to update live tile (win 8 app) every 30min如何每 30 分钟更新一次动态磁贴(win 8 应用程序)
【发布时间】:2014-02-09 14:48:26
【问题描述】:

如何每 30 分钟更新一次动态磁贴(win 8 应用)? (javascript)

我有函数“UpdateIt()”并且可以更新我的图块。所以问题 - 我如何在后台执行此功能?

谢谢

【问题讨论】:

    标签: javascript windows-8 microsoft-metro tile live-tile


    【解决方案1】:
    var changetitletimer = setInterval(function() { UpdateIt(); } , 1800000);
    /* 1800000 is the value for 30min in milliseconds */
    

    如果你想停止它:

    clearInterval(changetitletimer);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多