02 2021 档案

摘要:vue中体现缓存函数,用以下代码解释 function cached(fn){ const cache = Object.create(null) return (function cachedFn(str){ const hit = cache[str] return hit || (cache[ 阅读全文
posted @ 2021-02-24 18:03 灏月天染 阅读(61) 评论(0) 推荐(0)