标签:
function table(t){ var arr = []; if(t <= 9) { for ( var i = 1; i <= t; i ++) { var sum = i * t; arr.push(i +‘*‘+ t +‘=‘+sum); } console.log(arr.join(‘ ‘)); table(t+1); }}执行table(0)即可!
递归打印99乘法表
原文地址:http://www.cnblogs.com/dxa304814183/p/5573294.html