首页 > 其他 > 详细

2016/12/05

时间:2016-12-07 22:59:13      阅读:190      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
    var a = 1;
    var b = 1;
    var str = "<table width=‘500px‘ height=‘200px‘ cellspacing=‘10‘>";
    while (a<10) {
            str += "<tr>"
                while(b<=a){
                    str += "<td>"+b+"&times"+a+"="+(a*b)+"</td>"
                    b++
                }
            str += "</tr>"
            a++
            b =1;
        }    
            str += "</table>"
            document.write(str);
    </script>
</body>
</html>

 

2016/12/05

原文:http://www.cnblogs.com/ccssnn/p/6142964.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!