let numbers = [...Array(10).keys()].slice(1);numbers.map((value) => { let i = 0; let output = []; while (i++ < value) { output.push(`${i} * ${value} = ${value * i}`); } console.log(output.join('\t'));})
本文共 277 字,大约阅读时间需要 1 分钟。
let numbers = [...Array(10).keys()].slice(1);numbers.map((value) => { let i = 0; let output = []; while (i++ < value) { output.push(`${i} * ${value} = ${value * i}`); } console.log(output.join('\t'));})
转载于:https://www.cnblogs.com/cecej/p/11451885.html