匿名函数递归调用自身 var factorial = function(x){ if(x<=1) { return 1; } else if(x>1) { return x*arguments.callee(x-1); } }