JavaScript案例---九九乘法表

html 复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        span{
            display: inline-block;
            width: 100px;
            height: 30px;
        }
    </style>
</head>
<body>
    <script>
        for(var m=1;m<=9;m++){
            for(var i=1;i<=m;i++){
                document.write("<span>"+m+"*"+i+"="+m*i+"</span>")
            }
            document.write("<br>")
        }
    </script>
</body>
</html>
相关推荐
喆星时瑜16 小时前
Win10/11 安装 R 与 RStudio 详细图文教程
开发语言·r语言·安装
JustHappy16 小时前
「vConsole MCP🛠️」我让 AI 直接看见任何 H5 的日志和请求帮你 debug
前端·javascript·程序员
心中有你021416 小时前
【路径规划】A*寻路算法最通俗易懂讲解(C语言完整实现+详细注释)
c语言·开发语言·算法
codeGoogle16 小时前
Vue3 UIKit 实战:把聊天、会话、主题和移动端适配全部封装好
前端
言乐617 小时前
Python自动去除水印
开发语言·python·django·virtualenv·pygame
大圣编蚕17 小时前
C语言入门:基本语法汇总
c语言·开发语言
czq_268671948717 小时前
Python打卡第31天
开发语言·python
invicinble17 小时前
python 编程语言 认识维度
开发语言·数据库·python
AC赳赳老秦17 小时前
数据采集全链路审计留痕:用 OpenClaw 实现合规审计与追溯
开发语言·汇编·python·php·swift·deepseek·openclaw
czhc114007566317 小时前
退出防呆:用“总闸“收口所有退出入口,以及三个并发语法坑
开发语言·c#