📅  最后修改于: 2022-03-11 15:01:18.308000             🧑  作者: Mango
function triangleNumber(num) {
if(num>15) return;
var str = '';
for(var i = num; i >= 1 ; i--) str += i;
console.log(str);
triangleNumber(num-1)
}
triangleNumber(1);