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>
相关推荐
Godson_beginner1 分钟前
Sa-Token (java权限认证框架)
java·开发语言
谢景行^顾2 分钟前
numpy
开发语言·python·numpy
今天也很困13 分钟前
解决浏览器后台定时器降频问题:用 Worker 实现高精度 setInterval
前端
敲代码的瓦龙16 分钟前
操作系统相关的一些问题总结
linux·c语言·开发语言
只与明月听17 分钟前
一次uniapp问题排查
前端·javascript·vue.js
Bacon18 分钟前
Vitest 一个基于 Vite 的快速单元测试框架
前端
牛奔19 分钟前
php 8.2 配置安装php-zbarcode扩展
android·开发语言·php
学不动学不明白20 分钟前
AES-GCM 解密失败解决方案
前端
一水鉴天22 分钟前
整体设计 定稿 之16 三层智能合约体系实现设计和开发的实时融合
前端·人工智能·架构·智能合约
Fcy64834 分钟前
C++ 模版(进阶)(含array解析)
开发语言·c++·stl·array·模版