<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>输出九九乘法表</title>
</head>
<center>
<body>
<script type="text/javascript">
var i=1,j=1,s;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= i; j++){
document.write(j+"*"+i+"="+i*j+" ");
}
document.write("<br>");
}
</script>
</body>
</center>
</html>
运行结果: