09 2021 档案

摘要: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) 编辑
摘要: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) 编辑

点击右上角即可分享
微信分享提示