二位数组的输入输出

<!DOCTYPE html>
<html>

    <head>
        <meta charset="UTF-8">
        <title></title>
        <script language="JavaScript" type="text/jscript">
            var arr = [
                [1, 2, 4, 6],
                [2, 4, 7, 8],
                [8, 9, 10, 11],
                [9, 12, 13, 15]
            ];
            for(var i = 0; i < arr.length; i++) {
                for(var j = 0; j < arr[i].length; j++) {
                    document.write(arr[i][j]);
                }
                document.write("<br/>");
            }
        </script>
    </head>

    <body>
    </body>

</html>
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
相关资源
相似解决方案