1.正续和顺序打印数组;
function print(arr,index){ if(index === arr.length) return; print(arr,index+1); console.log(arr[index]); }
时间: 2024-10-06 04:10:59
1.正续和顺序打印数组;
function print(arr,index){ if(index === arr.length) return; print(arr,index+1); console.log(arr[index]); }