JavaScript的demo
Arguments.callee 当前正在执行的函数
function factorial(x){ if(x < 1) return 1; else { return ( x * arguments.callee(x -1) ) } }
fatotial(5) // 返回120
Arguments.callee 当前正在执行的函数
function factorial(x){ if(x < 1) return 1; else { return ( x * arguments.callee(x -1) ) } }
fatotial(5) // 返回120