摘要: 一、是什么 函数缓存,就是将函数运算过的结果进行缓存 本质上就是用空间(缓存存储)换时间(计算过程) 常用于缓存数据计算结果和缓存对象 const add = (a,b) => a+b;const calc = memoize(add); // 函数缓存calc(10,20);// 30calc(1 阅读全文
posted @ 2021-03-17 09:44 喆星高照 阅读(265) 评论(0) 推荐(0) 编辑