zoukankan      html  css  js  c++  java
  • 随机数

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
        </head>
        <body>
            <div id="one" style="color:red ;font-size:10cm; text-align:center;">0</div>
            <script>
            one=document.getElement("one")
            var i=1;
            var dt=null;
            function stop(){
                clearInterval(dt)
            }
            function star(){
                dt=setInterval(function(){
                    one.innerText=Math.round(Math.random()*100)
                },50)
            }
            </script>
            <button onclick="star()">开始</button>
            <button onclick="stop()">结束</button>
            
        </body>
    </html>

  • 相关阅读:
    计算机思维
    easyui增删改查前段代码
    文本相似度分析
    布隆过滤器
    SQL Server事务
    堆排序(Heapsort)
    游标
    存储过程
    触发器
    Thread部分总结以及小例子
  • 原文地址:https://www.cnblogs.com/wangxirui/p/6371460.html
Copyright © 2011-2022 走看看