js--99乘法表

for(let i= 1;i<10;i++){

    let a ='';
    for(let j=1;j<i+1;j++){
        a+=`${j}*${i}=${i*j}\t `
    }
    console.log(a)
}

猜你喜欢

转载自www.cnblogs.com/amtf-wah/p/9217601.html