• 三连击


    <html>
    </head>
    <script>
        function clickTime() {
            var text_ = document.form.text_;
            text_.value++;
            var T = setInterval(() => {
                text_.value = "0";
                clearInterval(T)
            }, 1000);
            if (text_.value == "3") {
                alert("点击了三次");
                text_.value = "0";
            }
        }
    </script>
    </head>
    
    <body onclick="clickTime()">
        <form name="form" style="margin:20px auto;15px;height: 15px;">
            <input type="button" name="text_" value=0 disabled style="margin:20px auto;28px;height: 20px;">
        </form>
    </body>
    
    </html>
  • 相关阅读:
    清理计算机硬盘
    DIY-组装
    go函数类型的使用
    go同步互斥锁
    Go读写文件
    go mod
    go html
    channel
    arp和rarp协议
    自己实现的反射
  • 原文地址:https://www.cnblogs.com/wulicute-TS/p/11971355.html
Copyright © 2020-2023  润新知