<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>九九乘法表</title>
<script>
window.onload=function jiujiu() {
for (var i = 1; i <= 9; i++) {
for (var j = 1; j < =i; j++) {
document.write(i+"*"+j+"="+i*j+"   ");
};
document.write("<br>");
};
}
</script>
</head>
<body>
<button onclick="jiujiu()">点我出现九九乘法表</button>
</body>
</html>
添加回答
举报
0/150
提交
取消