level 8
a乐派逍遥
楼主
var factorial:Function = function (x:uint) { if(x == 0) { return 1; } else { return (x * arguments.callee(x - 1)); } } trace(factorial(5)); // 120
ActionScript 语言及其语法之函数-函数参数 | 潮汕IT男

来自:www.chenlinsheng.com/?p=1710
2015年03月07日 03点03分
1
ActionScript 语言及其语法之函数-函数参数 | 潮汕IT男

来自:www.chenlinsheng.com/?p=1710