var res = (function (n) {
    if( n>1 ) {
        return n + arguments.callee( n-1 );
    } else {
        return 1;
    }
})(100)
console.log(res);

相关文章:

  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2022-01-15
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案