联合会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
火大
大法师打发
博客园
首页
新随笔
联系
管理
订阅
09 2021 档案
memoize
摘要:function getArea(r){ console.log(r); return Math.PI * r * r } function memoize(f){ let cache = {}; return function(){ let key = JSON.stringify(argumen
阅读全文
posted @
2021-09-18 17:10
LaLaLa_heng
阅读(75)
评论(0)
推荐(0)
编辑
once函数
摘要:function once(fn){ let down = false; return function(){ if(!down){ down = true; return fn.apply(this,arguments); } } } let pay = once(function(money){
阅读全文
posted @
2021-09-17 15:51
LaLaLa_heng
阅读(95)
评论(0)
推荐(0)
编辑
公告