Javascript callee用法

var ff = function(x) {
                
if (x <= 1return 1;
                
else return x * arguments.callee(x-1);
            }
            document.write(ff(
3));
//输出6
posted @ 2009-08-05 16:24  Thinking.N  阅读(209)  评论(0编辑  收藏  举报