源码附上:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>乘法表</title>
</head>
<body>

<script type="text/javascript">
    for(var i=1;i<10;i++){
        for(var j=1;j<i;j++){
            document.write(j+"*"+i+"="+i*j+"\t");
        }
        document.write("<br/>");
    }
</script>

</body>
</html>

使用JavaScript实现乘法表

相关文章:

  • 2021-11-30
  • 2021-09-03
  • 2021-11-04
  • 2022-02-14
  • 2022-02-17
  • 2022-12-23
  • 2022-12-25
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案