JS部分 window.onload=function () { chengfa(); } function chengfa() { var i,j; for(i=1;i<=9;i++){ for(j=1;j<=i;j++){ document.writeln(j+"*"+i+"="+(i*j)+" "); } document.writeln("<br>"); //用作换行 } } HTML部分 略…