ExtJS定时

    //定时刷新待办事宜状态
    var task={
          run:function(){
               //执行的方法或方法体
          },
          interval:5*60*1000  //5分钟
    }    
    
    //定时启动
    Ext.TaskManager.start(task);
    //定时停止
    Ext.TaskManager.stop(task);

JS定时

<script type="text/javascript">
       var print = function () {
           //执行的方法体
             alert('111');
       }
    //    每间隔1秒调用一次print函数,所以带引结果应该是从0,1,2...一直打印
        setInterval(print, 1000);
</script>

 

相关文章:

  • 2021-10-13
  • 2021-10-05
  • 2022-01-09
  • 2022-02-19
猜你喜欢
  • 2022-12-23
  • 2022-01-31
  • 2022-01-07
  • 2021-06-10
  • 2022-02-13
  • 2021-12-14
  • 2022-12-23
相关资源
相似解决方案