• 定时器时间动态变化(变速)


        var temp;
        var time=100;
        var m = 1;
        setfun();
        function setfun(){
            temp = setInterval(function(){
                console.log('执行1次'+time);
                clearInterval(temp);
                setfun();
            },time);
            m++;
            time = m*100;
        }
  • 相关阅读:
    WEB
    Python
    Git
    JavaScript
    鸡汤
    面向对象
    Python
    Python
    MongoDB
    Oracle 11g 安装
  • 原文地址:https://www.cnblogs.com/NB-JDzhou/p/8116589.html
Copyright © 2020-2023  润新知