在网页中嵌入使用JavaScript程序打印出九九口诀
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>九九乘法表
</title>
<script type="text/javascript">
for(var i=0; i<=9; i++){
for(var j=1; j<=i; j++){
document.write(i+"*"+j+"="+i*j+" ");
}
document.write("<br>");
}
</script>
</head>
<body>
</body>
</html>
运行效果:
转载请注明原文地址:https://blackberry.8miu.com/read-34440.html