function fib(){ let a = 0 let b = 0 let c = 1 return { next:()=>{ // res决定起始值 let res = b a = b b = c c = a + b return res } } }
点赞 评论

相关推荐

一只代码牛:应该不是你的问题,我感觉应该是最近不缺人
我的求职进度条
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务