<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script>
// 外层控制行数(第一个乘数)
document.write("<table border='1'>")
for (var i =1; i <=9; i++) {
document.write("<tr>")
//内层控制每一行的循环次数(第二个乘数)
for(var j=1; j<=i;j++){
document.write("<td>")
document.write(`${i}*${j}=${i*j}`);
document.write("</td>")
}
document.write("</tr>")
}
document.write("</table>")
</script>
</body>
</html>
07-27