1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 </head> 7 <body> 8 <script type="text/javascript"> 9 var str=''; 10 for(var i=1;i<=9;i++){ 11 for(var j=i;j<=9;j++){ 12 str+=i+'*'+j+'='+(i*j)+'\t'; 13 } 14 str+='\n'; 15 } 16 console.log(str); 17 </script> 18 </body> 19 </html>标签:10,19,18,循环,var,乘法表 From: https://www.cnblogs.com/webaction/p/16637759.html