自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

手寫一個基于 Proxy 的緩存庫

開發(fā) 前端
Proxy 可以理解成,在目標(biāo)對象之前架設(shè)一層“攔截”,外界對該對象的訪問,都必須先通過這層攔截,因此提供了一種機(jī)制,可以對外界的訪問進(jìn)行過濾和改寫。Proxy 這個詞的原意是代理,用在這里表示由它來“代理”某些操作,可以譯為“代理器”。

兩年前,我寫了一篇關(guān)于業(yè)務(wù)緩存的博客 前端 api 請求緩存方案, 這篇博客反響還不錯,其中介紹了如何緩存數(shù)據(jù),Promise 以及如何超時刪除(也包括如何構(gòu)建修飾器)。如果對此不夠了解,可以閱讀博客進(jìn)行學(xué)習(xí)。

[[383008]]

但之前的代碼和方案終歸還是簡單了些,而且對業(yè)務(wù)有很大的侵入性。這樣不好,于是筆者開始重新學(xué)習(xí)與思考代理器 Proxy。

Proxy 可以理解成,在目標(biāo)對象之前架設(shè)一層“攔截”,外界對該對象的訪問,都必須先通過這層攔截,因此提供了一種機(jī)制,可以對外界的訪問進(jìn)行過濾和改寫。Proxy 這個詞的原意是代理,用在這里表示由它來“代理”某些操作,可以譯為“代理器”。關(guān)于 Proxy 的介紹與使用,建議大家還是看阮一峰大神的 ECMAScript 6 入門 代理篇。

項目演進(jìn)

任何項目都不是一觸而就的,下面是關(guān)于 Proxy 緩存庫的編寫思路。希望能對大家有一些幫助。

proxy handler 添加緩存

當(dāng)然,其實代理器中的 handler 參數(shù)也是一個對象,那么既然是對象,當(dāng)然可以添加數(shù)據(jù)項,如此,我們便可以基于 Map 緩存編寫 memoize 函數(shù)用來提升算法遞歸性能。

 

  1. type TargetFun<V> = (...args: any[]) => V 
  2.  
  3. function memoize<V>(fn: TargetFun<V>) { 
  4.   return new Proxy(fn, { 
  5.     // 此處目前只能略過 或者 添加一個中間層集成 Proxy 和 對象。 
  6.     // 在對象中添加 cache 
  7.     // @ts-ignore 
  8.     cache: new Map<string, V>(), 
  9.     apply(target, thisArg, argsList) { 
  10.       // 獲取當(dāng)前的 cache 
  11.       const currentCache = (this as any).cache 
  12.        
  13.       // 根據(jù)數(shù)據(jù)參數(shù)直接生成 Map 的 key 
  14.       let cacheKey = argsList.toString(); 
  15.        
  16.       // 當(dāng)前沒有被緩存,執(zhí)行調(diào)用,添加緩存 
  17.       if (!currentCache.has(cacheKey)) { 
  18.         currentCache.set(cacheKey, target.apply(thisArg, argsList)); 
  19.       } 
  20.        
  21.       // 返回被緩存的數(shù)據(jù) 
  22.       return currentCache.get(cacheKey); 
  23.     } 
  24.   }); 
  25.    

我們可以嘗試 memoize fibonacci 函數(shù),經(jīng)過了代理器的函數(shù)有非常大的性能提升(肉眼可見):

 

  1. const fibonacci = (n: number): number => (n <= 1 ? 1 : fibonacci(n - 1) + fibonacci(n - 2)); 
  2. const memoizedFibonacci = memoize<number>(fibonacci); 
  3.  
  4. for (let i = 0; i < 100; i++) fibonacci(30); // ~5000ms 
  5. for (let i = 0; i < 100; i++) memoizedFibonacci(30); // ~50ms 

自定義函數(shù)參數(shù)

我們?nèi)耘f可以利用之前博客介紹的的函數(shù)生成唯一值,只不過我們不再需要函數(shù)名了:

 

  1. const generateKeyError = new Error("Can't generate key from function argument"
  2.  
  3. // 基于函數(shù)參數(shù)生成唯一值 
  4. export default function generateKey(argument: any[]): string { 
  5.   try{ 
  6.     return `${Array.from(argument).join(',')}` 
  7.   }catch(_) { 
  8.     throw generateKeyError 
  9.   } 

雖然庫本身可以基于函數(shù)參數(shù)提供唯一值,但是針對形形色色的不同業(yè)務(wù)來說,這肯定是不夠用的,需要提供用戶可以自定義參數(shù)序列化。

 

  1. // 如果配置中有 normalizer 函數(shù),直接使用,否則使用默認(rèn)函數(shù) 
  2. const normalizer = options?.normalizer ?? generateKey 
  3.  
  4. return new Proxy<any>(fn, { 
  5.   // @ts-ignore 
  6.   cache, 
  7.   apply(target, thisArg, argsList: any[]) { 
  8.     const cache: Map<string, any> = (this as any).cache 
  9.      
  10.     // 根據(jù)格式化函數(shù)生成唯一數(shù)值 
  11.     const cacheKey: string = normalizer(argsList); 
  12.      
  13.     if (!cache.has(cacheKey)) 
  14.       cache.set(cacheKey, target.apply(thisArg, argsList)); 
  15.     return cache.get(cacheKey); 
  16.   } 
  17. }); 

添加 Promise 緩存

在之前的博客中,提到緩存數(shù)據(jù)的弊端。同一時刻多次調(diào)用,會因為請求未返回而進(jìn)行多次請求。所以我們也需要添加關(guān)于 Promise 的緩存。

 

  1. if (!currentCache.has(cacheKey)){ 
  2.   let result = target.apply(thisArg, argsList) 
  3.    
  4.   // 如果是 promise 則緩存 promise,簡單判斷!  
  5.   // 如果當(dāng)前函數(shù)有 then 則是 Promise 
  6.   if (result?.then) { 
  7.     result = Promise.resolve(result).catch(error => { 
  8.       // 發(fā)生錯誤,刪除當(dāng)前 promise,否則會引發(fā)二次錯誤 
  9.       // 由于異步,所以當(dāng)前 delete 調(diào)用一定在 set 之后, 
  10.       currentCache.delete(cacheKey) 
  11.      
  12.       // 把錯誤衍生出去 
  13.       return Promise.reject(error) 
  14.     }) 
  15.   } 
  16.   currentCache.set(cacheKey, result); 
  17. return currentCache.get(cacheKey); 

此時,我們不但可以緩存數(shù)據(jù),還可以緩存 Promise 數(shù)據(jù)請求。

添加過期刪除功能

我們可以在數(shù)據(jù)中添加當(dāng)前緩存時的時間戳,在生成數(shù)據(jù)時候添加。

 

  1. // 緩存項 
  2. export default class ExpiredCacheItem<V> { 
  3.   data: V; 
  4.   cacheTime: number; 
  5.  
  6.   constructor(data: V) { 
  7.     this.data = data 
  8.     // 添加系統(tǒng)時間戳 
  9.     this.cacheTime = (new Date()).getTime() 
  10.   } 
  11.  
  12. // 編輯 Map 緩存中間層,判斷是否過期 
  13. isOverTime(name: string) { 
  14.   const data = this.cacheMap.get(name
  15.  
  16.   // 沒有數(shù)據(jù)(因為當(dāng)前保存的數(shù)據(jù)是 ExpiredCacheItem),所以我們統(tǒng)一看成功超時 
  17.   if (!data) return true 
  18.  
  19.   // 獲取系統(tǒng)當(dāng)前時間戳 
  20.   const currentTime = (new Date()).getTime() 
  21.  
  22.   // 獲取當(dāng)前時間與存儲時間的過去的秒數(shù) 
  23.   const overTime = currentTime - data.cacheTime 
  24.  
  25.   // 如果過去的秒數(shù)大于當(dāng)前的超時時間,也返回 null 讓其去服務(wù)端取數(shù)據(jù) 
  26.   if (Math.abs(overTime) > this.timeout) { 

到達(dá)這一步,我們可以做到之前博客所描述的所有功能。不過,如果到這里就結(jié)束的話,太不過癮了。我們繼續(xù)學(xué)習(xí)其他庫的功能來優(yōu)化我的功能庫。

添加手動管理

通常來說,這些緩存庫都會有手動管理的功能,所以這里我也提供了手動管理緩存以便業(yè)務(wù)管理。這里我們使用 Proxy get 方法來攔截屬性讀取。

 

  1.  return new Proxy(fn, { 
  2.   // @ts-ignore 
  3.   cache, 
  4.   get: (target: TargetFun<V>, property: string) => { 
  5.      
  6.     // 如果配置了手動管理 
  7.     if (options?.manual) { 
  8.       const manualTarget = getManualActionObjFormCache<V>(cache) 
  9.        
  10.       // 如果當(dāng)前調(diào)用的函數(shù)在當(dāng)前對象中,直接調(diào)用,沒有的話訪問原對象 
  11.       // 即使當(dāng)前函數(shù)有該屬性或者方法也不考慮,誰讓你配置了手動管理呢。 
  12.       if (property in manualTarget) { 
  13.         return manualTarget[property] 
  14.       } 
  15.     } 
  16.     
  17.     // 當(dāng)前沒有配置手動管理,直接訪問原對象 
  18.     return target[property] 
  19.   }, 
  20.  
  21.  
  22. export default function getManualActionObjFormCache<V>( 
  23.   cache: MemoizeCache<V> 
  24. ): CacheMap<string | object, V> { 
  25.   const manualTarget = Object.create(null

當(dāng)前情況并不復(fù)雜,我們可以直接調(diào)用,復(fù)雜的情況下還是建議使用 Reflect 。

添加 WeakMap

我們在使用 cache 時候,我們同時也可以提供 WeakMap ( WeakMap 沒有 clear 和 size 方法),這里我提取了 BaseCache 基類。

 

  1. export default class BaseCache<V> { 
  2.   readonly weak: boolean; 
  3.   cacheMap: MemoizeCache<V> 
  4.  
  5.   constructor(weak: boolean = false) { 
  6.     // 是否使用 weakMap 
  7.     this.weak = weak 
  8.     this.cacheMap = this.getMapOrWeakMapByOption() 
  9.   } 
  10.  
  11.   // 根據(jù)配置獲取 Map 或者 WeakMap 
  12.   getMapOrWeakMapByOption<T>(): Map<string, T> | WeakMap<object, T>  { 
  13.     return this.weak ? new WeakMap<object, T>() : new Map<string, T>() 
  14.   } 

之后,我添加各種類型的緩存類都以此為基類。

添加清理函數(shù)

在緩存進(jìn)行刪除時候需要對值進(jìn)行清理,需要用戶提供 dispose 函數(shù)。該類繼承 BaseCache 同時提供 dispose 調(diào)用。

 

  1. export const defaultDispose: DisposeFun<any> = () => void 0 
  2.  
  3. export default class BaseCacheWithDispose<V, WrapperV> extends BaseCache<WrapperV> { 
  4.   readonly weak: boolean 
  5.   readonly dispose: DisposeFun<V> 
  6.  
  7.   constructor(weak: boolean = false, dispose: DisposeFun<V> = defaultDispose) { 
  8.     super(weak) 
  9.     this.weak = weak 
  10.     this.dispose = dispose 
  11.   } 
  12.  
  13.   // 清理單個值(調(diào)用 delete 前調(diào)用) 
  14.   disposeValue(value: V | undefined): void { 
  15.     if (value) { 
  16.       this.dispose(value) 
  17.     } 
  18.   } 
  19.  
  20.   // 清理所有值(調(diào)用 clear 方法前調(diào)用,如果當(dāng)前 Map 具有迭代器) 
  21.   disposeAllValue<V>(cacheMap: MemoizeCache<V>): void { 
  22.     for (let mapValue of (cacheMap as any)) { 
  23.       this.disposeValue(mapValue?.[1]) 
  24.     } 
  25.   } 

當(dāng)前的緩存如果是 WeakMap,是沒有 clear 方法和迭代器的。個人想要添加中間層來完成這一切(還在考慮,目前沒有做)。如果 WeakMap 調(diào)用 clear 方法時,我是直接提供新的 WeakMap 。

 

  1. clear() { 
  2.   if (this.weak) { 
  3.     this.cacheMap = this.getMapOrWeakMapByOption() 
  4.   } else { 
  5.     this.disposeAllValue(this.cacheMap) 
  6.     this.cacheMap.clear!() 
  7.   } 

添加計數(shù)引用

在學(xué)習(xí)其他庫 memoizee 的過程中,我看到了如下用法:

  1. memoized = memoize(fn, { refCounter: true }); 
  2.  
  3. memoized("foo", 3); // refs: 1 
  4. memoized("foo", 3); // Cache hit, refs: 2 
  5. memoized("foo", 3); // Cache hit, refs: 3 
  6. memoized.deleteRef("foo", 3); // refs: 2 
  7. memoized.deleteRef("foo", 3); // refs: 1 
  8. memoized.deleteRef("foo", 3); // refs: 0,清除 foo 的緩存 
  9. memoized("foo", 3); // Re-executed, refs: 1 

于是我有樣學(xué)樣,也添加了 RefCache。

 

  1. export default class RefCache<V> extends BaseCacheWithDispose<V, V> implements CacheMap<string | object, V> { 
  2.     // 添加 ref 計數(shù) 
  3.   cacheRef: MemoizeCache<number> 
  4.  
  5.   constructor(weak: boolean = false, dispose: DisposeFun<V> = () => void 0) { 
  6.     super(weak, dispose) 
  7.     // 根據(jù)配置生成 WeakMap 或者 Map 
  8.     this.cacheRef = this.getMapOrWeakMapByOption<number>() 
  9.   } 
  10.    
  11.  
  12.   // get has clear 等相同。不列出 
  13.    
  14.   delete(key: string | object): boolean { 
  15.     this.disposeValue(this.get(key)) 
  16.     this.cacheRef.delete(key
  17.     this.cacheMap.delete(key
  18.     return true
  19.   } 
  20.  
  21.  
  22.   set(key: string | object, value: V): this { 
  23.     this.cacheMap.set(key, value) 
  24.     // set 的同時添加 ref 
  25.     this.addRef(key

同時修改 proxy 主函數(shù):

 

  1. if (!currentCache.has(cacheKey)) { 
  2.   let result = target.apply(thisArg, argsList) 
  3.  
  4.   if (result?.then) { 
  5.     result = Promise.resolve(result).catch(error => { 
  6.       currentCache.delete(cacheKey) 
  7.       return Promise.reject(error) 
  8.     }) 
  9.   } 
  10.   currentCache.set(cacheKey, result); 
  11.  
  12.   // 當(dāng)前配置了 refCounter 
  13. else if (options?.refCounter) { 
  14.   // 如果被再次調(diào)用且當(dāng)前已經(jīng)緩存過了,直接增加        
  15.   currentCache.addRef?.(cacheKey) 

添加 LRU

LRU 的英文全稱是 Least Recently Used,也即最不經(jīng)常使用。相比于其他的數(shù)據(jù)結(jié)構(gòu)進(jìn)行緩存,LRU 無疑更加有效。

這里考慮在添加 maxAge 的同時也添加 max 值 (這里我利用兩個 Map 來做 LRU,雖然會增加一定的內(nèi)存消耗,但是性能更好)。

如果當(dāng)前的此時保存的數(shù)據(jù)項等于 max ,我們直接把當(dāng)前 cacheMap 設(shè)為 oldCacheMap,并重新 new cacheMap。

 

  1. set(key: string | object, value: V) { 
  2.   const itemCache = new ExpiredCacheItem<V>(value) 
  3.   // 如果之前有值,直接修改 
  4.   this.cacheMap.has(key) ? this.cacheMap.set(key, itemCache) : this._set(key, itemCache); 
  5.   return this 
  6.  
  7. private _set(key: string | object, value: ExpiredCacheItem<V>) { 
  8.   this.cacheMap.set(key, value); 
  9.   this.size++; 
  10.  
  11.   if (this.size >= this.max) { 
  12.     this.size = 0; 
  13.     this.oldCacheMap = this.cacheMap; 
  14.     this.cacheMap = this.getMapOrWeakMapByOption() 
  15.   } 

重點在與獲取數(shù)據(jù)時候,如果當(dāng)前的 cacheMap 中有值且沒有過期,直接返回,如果沒有,就去 oldCacheMap 查找,如果有,刪除老數(shù)據(jù)并放入新數(shù)據(jù)(使用 _set 方法),如果都沒有,返回 undefined.

 

  1. get(key: string | object): V | undefined { 
  2.   // 如果 cacheMap 有,返回 value 
  3.   if (this.cacheMap.has(key)) { 
  4.     const item = this.cacheMap.get(key); 
  5.     return this.getItemValue(key, item!); 
  6.   } 
  7.  
  8.   // 如果 oldCacheMap 里面有 
  9.   if (this.oldCacheMap.has(key)) { 
  10.     const item = this.oldCacheMap.get(key); 
  11.     // 沒有過期 
  12.     if (!this.deleteIfExpired(key, item!)) { 
  13.       // 移動到新的數(shù)據(jù)中并刪除老數(shù)據(jù) 
  14.       this.moveToRecent(key, item!); 
  15.       return item!.data as V; 
  16.     } 
  17.   } 
  18.   return undefined 
  19.  
  20.  
  21. private moveToRecent(key: string | object, item: ExpiredCacheItem<V>) { 
  22.   // 老數(shù)據(jù)刪除 
  23.   this.oldCacheMap.delete(key); 

整理 memoize 函數(shù)

事情到了這一步,我們就可以從之前的代碼細(xì)節(jié)中解放出來了,看看基于這些功能所做出的接口與主函數(shù)。

 

  1. // 面向接口,無論后面還會不會增加其他類型的緩存類 
  2. export interface BaseCacheMap<K, V> { 
  3.   delete(key: K): boolean; 
  4.  
  5.   get(key: K): V | undefined; 
  6.  
  7.   has(key: K): boolean; 
  8.  
  9.   set(key: K, value: V): this; 
  10.  
  11.   clear?(): void; 
  12.  
  13.   addRef?(key: K): void; 
  14.  
  15.   deleteRef?(key: K): boolean; 
  16.  
  17. // 緩存配置 
  18. export interface MemoizeOptions<V> { 
  19.   /** 序列化參數(shù) */ 
  20.   normalizer?: (args: any[]) => string; 
  21.   /** 是否使用 WeakMap */ 
  22.   weak?: boolean; 
  23.   /** 最大毫秒數(shù),過時刪除 */ 
  24.   maxAge?: number; 
  25.   /** 最大項數(shù),超過刪除  */ 

最終的 memoize 函數(shù)其實和最開始的函數(shù)差不多,只做了 3 件事

  • 檢查參數(shù)并拋出錯誤
  • 根據(jù)參數(shù)獲取合適的緩存
  • 返回代理

 

  1. export default function memoize<V>(fn: TargetFun<V>, options?: MemoizeOptions<V>): ResultFun<V> { 
  2.   // 檢查參數(shù)并拋出錯誤 
  3.   checkOptionsThenThrowError<V>(options) 
  4.  
  5.   // 修正序列化函數(shù) 
  6.   const normalizer = options?.normalizer ?? generateKey 
  7.  
  8.   let cache: MemoizeCache<V> = getCacheByOptions<V>(options) 
  9.  
  10.   // 返回代理 
  11.   return new Proxy(fn, { 
  12.     // @ts-ignore 
  13.     cache, 
  14.     get: (target: TargetFun<V>, property: string) => { 
  15.       // 添加手動管理 
  16.       if (options?.manual) { 
  17.         const manualTarget = getManualActionObjFormCache<V>(cache) 
  18.         if (property in manualTarget) { 
  19.           return manualTarget[property] 
  20.         } 
  21.       } 
  22.       return target[property] 
  23.     }, 
  24.     apply(target, thisArg, argsList: any[]): V { 

完整代碼在 memoizee-proxy 中。大家自行操作與把玩。

下一步

測試

測試覆蓋率不代表一切,但是在實現(xiàn)庫的過程中,JEST 測試庫給我提供了大量的幫助,它幫助我重新思考每一個類以及每一個函數(shù)應(yīng)該具有的功能與參數(shù)校驗。之前的代碼我總是在項目的主入口進(jìn)行校驗,對于每個類或者函數(shù)的參數(shù)沒有深入思考。事實上,這個健壯性是不夠的。因為你不能決定用戶怎么使用你的庫。

Proxy 深入

事實上,代理的應(yīng)用場景是不可限量的。這一點,ruby 已經(jīng)驗證過了(可以去學(xué)習(xí)《ruby 元編程》)。

開發(fā)者使用它可以創(chuàng)建出各種編碼模式,比如(但遠(yuǎn)遠(yuǎn)不限于)跟蹤屬性訪問、隱藏屬性、阻止修改或刪除屬性、函數(shù)參數(shù)驗證、構(gòu)造函數(shù)參數(shù)驗證、數(shù)據(jù)綁定,以及可觀察對象。

當(dāng)然,Proxy 雖然來自于 ES6 ,但該 API 仍需要較高的瀏覽器版本,雖然有 proxy-pollfill ,但畢竟提供功能有限。不過已經(jīng) 2021,相信深入學(xué)習(xí) Proxy 也是時機(jī)了。

深入緩存

緩存是有害的!這一點毋庸置疑。但是它實在太快了!所以我們要更加理解業(yè)務(wù),哪些數(shù)據(jù)需要緩存,理解那些數(shù)據(jù)可以使用緩存。

當(dāng)前書寫的緩存僅僅只是針對與一個方法,之后寫的項目是否可以更細(xì)粒度的結(jié)合返回數(shù)據(jù)?還是更往上思考,寫出一套緩存層?

小步開發(fā)

在開發(fā)該項目的過程中,我采用小步快跑的方式,不斷返工。最開始的代碼,也僅僅只到了添加過期刪除功能那一步。

但是當(dāng)我每次完成一個新的功能后,重新開始整理庫的邏輯與流程,爭取每一次的代碼都足夠優(yōu)雅。同時因為我不具備第一次編寫就能通盤考慮的能力。不過希望在今后的工作中,不斷進(jìn)步。這樣也能減少代碼的返工。

其他

函數(shù)創(chuàng)建

事實上,我在為當(dāng)前庫添加手動管理時候,考慮過直接復(fù)制函數(shù),因為函數(shù)本身是一個對象。同時為當(dāng)前函數(shù)添加 set 等方法。但是沒有辦法把作用域鏈拷貝過去。

雖然沒能成功,但是也學(xué)到了一些知識,這里也提供兩個創(chuàng)建函數(shù)的代碼。

我們在創(chuàng)建函數(shù)時候基本上會利用 new Function 創(chuàng)建函數(shù),但是瀏覽器沒有提供可以直接創(chuàng)建異步函數(shù)的構(gòu)造器,我們需要手動獲取。

 

  1. AsyncFunction = (async x => x).constructor  
  2. foo = new AsyncFunction('x, y, p''return x + y + await p' 
  3. foo(1,2, Promise.resolve(3)).then(console.log) // 6 

對于全局函數(shù),我們也可以直接 fn.toString() 來創(chuàng)建函數(shù),這時候異步函數(shù)也可以直接構(gòu)造的。

 

  1. function cloneFunction<T>(fn: (...args: any[]) => T): (...args: any[]) => T { 
  2.   return new Function('return '+ fn.toString())(); 

鼓勵一下

如果你覺得這篇文章不錯,希望可以給與我一些鼓勵,在我的 github 博客下幫忙 star 一下。

責(zé)任編輯:未麗燕 來源: Segmentfault.com
相關(guān)推薦

2022-03-09 09:43:01

工具類線程項目

2022-10-31 08:27:53

Database數(shù)據(jù)數(shù)據(jù)庫

2015-06-02 10:24:43

iOS網(wǎng)絡(luò)請求降低耦合

2015-06-02 09:51:40

iOS網(wǎng)絡(luò)請求封裝接口

2020-11-02 08:19:18

RPC框架Java

2021-03-18 08:04:54

AQS工具CAS

2021-12-07 06:55:17

節(jié)流函數(shù)Throttle

2018-02-08 18:00:49

Spark文件測試

2022-01-26 15:20:00

配置微服務(wù)架構(gòu)

2021-12-09 10:57:19

防抖函數(shù) Debounce

2020-12-13 11:57:57

Nodejs微信開發(fā)

2017-03-02 13:31:02

監(jiān)控系統(tǒng)

2022-01-17 11:50:38

Linux CPULinux 系統(tǒng)

2015-06-02 09:41:00

iOS網(wǎng)絡(luò)請求NSURLSessio

2020-09-27 14:13:50

Spring BootJava框架

2022-01-10 11:04:41

單鏈表面試編程

2012-02-01 14:12:55

iOS本地緩存機(jī)制

2024-08-02 09:49:35

Spring流程Tomcat

2022-02-22 11:12:38

2022-02-06 20:55:39

jsEsbuild項目
點贊
收藏

51CTO技術(shù)棧公眾號