document.write("九九乘法表:"); document.write("<br>"); for(i = 1; i<10;i++){ for(j = 1; j<=i;j++){ var result = i*j; document.write( j + "*" + i + "=" + result +" " ); } document.write("<br>"); }