SOURCE

var str = "";
for (var i = 1; i <= 9; i++){
    for(var j = 1; j <= i; j++){
        //1*2=2
        str += i + '*' + j + '=' + i * j + '\t';
    }
    str = str + '\n';
}
console.log('-------------');
console.log(str);
console 命令行工具 X clear

                    
>
console