<script type="text/javascript"> //乘法口诀表 for (var i = 1; i < 10; i++) { for (var j = 1; j <= i; j++) { var sum=i*j; document.write(i+"x"+j+"="+sum+" "); } document.write("<br/>"); } </script>