1 <html> 2 <head> 3 <title>9*9乘法口诀</title> 4 <script language="JavaScript"> 5 var rows = 9; 6 var cols = 9; 7 document.write("<table border=\"1\">"); 8 for(var i=1;i<rows+1;i++){ 9 document.write("<tr>"); 10 for(var j=1;j<i+1;j++){ 11 document.write("<td>"+i+"*"+j+"="+i*j+"</t>"); 12 } 13 document.write("</tr>"); 14 } 15 document.write("</table>"); 16 17 </script> 18 </head> 19 <body> 20 21 22 23 </body> 24 </html>