function show(num){
console.log(num);
if(num<=3){
show(++num);
}
console.log(num);
}
show(0);
输出
解释图:
时间: 2024-10-08 00:49:28
function show(num){
console.log(num);
if(num<=3){
show(++num);
}
console.log(num);
}
show(0);
输出
解释图: