var result = (function f(number) { if (number == 1) { return number; } else { return number * f(number - 1); } })(); for (var i = 0; i < 5; i++) { (function(index) { console.log('第' + index + '次是:' + '\n'); result(index); })(i); }; //console后,为什么是“Uncaught RangeError: Maximum call stack size exceeded(…)”
怎么改?