<body>
<table id="table-show"></table>
</body>
<script>
var table = document.getElementById('table-show')
let row = ''
for (let i = 1; i <= 9; i++) {
row += '<tr>'
for (let j = 1; j <= i; j++) {
row += `<td>${j} × ${i} = ${j * i}</td>`
}
row += '</tr>'
}
table.innerHTML = row
</script>
<style>
table {
border-collapse: collapse;
}
td {
border: 1px solid #ddd;
padding: 8px;
}
</style>
06-10
9218
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-20
4673
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-16
9130
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-14