var factorial = function(x){
if(x<=1) {
return 1;
}
else if(x>1) {
return x*arguments.callee(x-1);
}
}
var factorial = function(x){
if(x<=1) {
return 1;
}
else if(x>1) {
return x*arguments.callee(x-1);
}
}
转载于:https://www.cnblogs.com/rellame/p/5266753.html