JS逐字显示

版权声明:转载原创文章请以超链接形式请注明原文章出处,尊重作者,尊重原创!


恰饭广告




<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Document</title>
    <script type="text/javascript">
        var i=0;
        var string="彬菌技术博客";
        function show_word(){
            document.getElementById("word").innerHTML+=string.substring(i,i+1);
            i++;
        }
        setInterval("show_word()",1000);
    </script>
</head>
<body>
    <div id="word"></div>
</body>
</html>

原文链接:https://www.idaobin.com/archives/209.html

让我恰个饭吧.ヘ( ̄ω ̄ヘ)

支付宝 ——————- 微信
图片加载中图片加载中



恰饭广告

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

97 − = 92