标签:log bsp doctype 循环控制 双层 utf-8 initial asc view
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <meta http-equiv="X-UA-Compatible" content="ie=edge"> 7 <title>Document</title> 8 <script> 9 var str=""; 10 for(var i=1;i<=9;i++){//外层循环控制行数 11 for(var j=1;j<=i;j++){//里层循环控制每一行的个数 j<=i 12 str +=j +‘x‘+i+‘=‘+i * j+‘\t‘; 13 } 14 str=str+ ‘\n‘; 15 } 16 console.log(str); 17 </script> 18 </head> 19 <body> 20 </body> 21 </html>
标签:log bsp doctype 循环控制 双层 utf-8 initial asc view
原文地址:https://www.cnblogs.com/CheungKaHo/p/12011822.html