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 } } }
点赞 评论

相关推荐

哞客37422655...:你猜为什么福利这么好还得一直追着你问
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务