递归
//递归
//1.函数调用 函数自身 执行递的动作
//2.最后一次判断一个终止条件,可以执行归的动作
function test(n){
if(n==1){
return 1;
}
return n*test(n-1);
}
test(4);