zoukankan      html  css  js  c++  java
  • ExtJS定时和JS定时

    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>
  • 相关阅读:
    Friends ZOJ
    2^x mod n = 1 HDU
    Paint the Grid Reloaded ZOJ
    Treap 模板
    bzoj进度条
    。。。
    bzoj
    。。。
    bzoj
    题解continue
  • 原文地址:https://www.cnblogs.com/it-mh/p/10107916.html
Copyright © 2011-2022 走看看