gengzhong
全程用js代码实现,只需几行代码即可,欢迎收藏
完整代码如下:
<script>
for(var i=1;i<=9;i++){//外层循环决定行的数量
for(var j=1;j<=i;j++){//内层循环决定列的数量
document.write ( j + "*" + i + "=" + j * i +"&nbsp;&nbsp") ;
}
document.write("<br>");//添加换行
}
</script>

分类:

技术点:

相关文章:

  • 2021-11-06
  • 2021-12-09
  • 2021-11-06
  • 2022-12-23
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-11-06
猜你喜欢
  • 2021-11-06
  • 2021-11-06
  • 2021-11-06
  • 2021-09-20
  • 2021-11-06
  • 2021-11-06
相关资源
相似解决方案