function abc(num){
if (num>3) {
abc(--num);
}
document.writeln(num);
abc(5);
这个递归函数我认为应该只输出3才对,为什么输出的是3 3 4 呢?
一直都不明白,求指点迷津。
相关分类