TypechoJoeTheme

Dcr163的博客

统计

JS_定时器setInterval 笔记

2015-10-18
/
0 评论
/
1,033 阅读
/
正在检测是否收录...
10/18

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>JS_定时器setInterval</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
    <body>
        <input type="button" value="5"/>
    </body>
    <script type="text/javascript">
        function iner(){
            var ipt=document.getElementsByTagName('input')[0];
            if ((ipt.value=ipt.value-1)==0) {
                  clearInterval(aa);             
            }
        }
         var aa=setInterval('iner()',1000);
         
    </script>
</html>

朗读
赞(0)
版权属于:

Dcr163的博客

本文链接:

https://www.dcr163.cn/54.html(转载时请注明本文出处及文章链接)

评论 (0)

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. https://Sites.google.com/view/vavada-online-casino
    2025-04-12
  2. https://x.com/jeetbuzzcom
    2025-04-07
  3. prozone.cc alternative
    2025-03-19
  4. urgent delivery
    2025-03-16
  5. faster indexing
    2025-03-05

标签云