摘要:
/** * Proxy Pattern 代理是一种结构型设计模式, 让你能提供真实服务对象的替代品给客户端使用。 代理接收客户端的请求并进行一些处理 (访问控制和缓存等), 然后再将请求传递给服务对象。 * The Subject interface declares common operatio 阅读全文
posted @ 2023-10-10 16:45
®Geovin Du Dream Park™
阅读(30)
评论(0)
推荐(0)
摘要:
/** * Flyweight Pattern 享元是一种结构型设计模式, 它允许你在消耗少量内存的情况下支持大量对象。 * https://refactoringguru.cn/design-patterns/flyweight/typescript/example#lang-features * 阅读全文
posted @ 2023-10-10 13:20
®Geovin Du Dream Park™
阅读(27)
评论(0)
推荐(0)
浙公网安备 33010602011771号