html5第九课时,循环输出

来源:互联网 发布:主域名服务器 迭代 编辑:程序博客网 时间:2024/06/06 04:29
<!DOCTYPE html><html><head lang="en">    <meta charset="UTF-8">    <title>循环输出</title>    <script type="text/javascript">       document.write('使用javascript循环输出HellowWorld')        for(var i=0;i<5;i++){            document.write('<h3>HellowWorld<h3>')        }       /*var声明变量。*/        document.write('<h1>HellowWorld<h1>')    </script></head><body>文档主题内容</body></html>