<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<title></title>

</head>

<body>

</body>

<script type="text/javascript">

//打印99乘法表 

for (var n=1;n<=9;n++) {

for (var m=1;m<n+1;m++) {

var b=m*n;

document.write(m+"×"+n+"="+b+" "+" ");

}

document.write("<br/>");

document.write("<br/>");

}

</script>

 

</html>

posted on 2016-10-22 21:18  代码小公主  阅读(16658)  评论(0编辑  收藏  举报