📅  最后修改于: 2022-03-11 15:03:00.708000             🧑  作者: Mango
代码示例1
function count(n) {
if (n === 1) {
return [1];
} else {
var numbers = count(n - 1);
numbers.push(n);
return numbers;
}
}