document.write('for循环输出九九乘法表'); for(var i=1;i<=9;i++){ for(var j=i;j<=9;j++){ document.write(i+'X'+j+'='+(i*j)); } document.write('<br>'); }