首页 > TAG信息列表 > aee

使用JS 递归函数 输出 斐波那契数列 (return 返回值使用时的注意点 )

    function aee(i){     if( i == 0 ){         return 0;     }     if ( i == 1 ){         return 1;     }     if( i >= 2){     *** //     return aee(i) = aee(i - 1) + aee(i - 2);           卧槽return  只能是表达式   一定要记