AI智能
改变未来

js写九九乘法表

<!DOCTYPE html><html leng = \'en\'><head><meta charset = \'UTF-8\'/></head><body><script>for(var i = 1; i <= 9; i++){//行数for(var j = 1; j <= i; j++){//列数document.write(j + \'*\' + i + \'=\' + j * i + \'&nbsp;&nbsp;&nbsp;&nbsp;\');if(j === i){document.write(\'<br/>\');}}}</script></body></html>
赞(0) 打赏
未经允许不得转载:爱站程序员基地 » js写九九乘法表