匿名函数递归调用自身

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