摘要: /** * Facade pattern 外观是一种结构型设计模式, 能为复杂系统、 程序库或框架提供一个简单 (但有限) 的接口。 * The Facade class provides a simple interface to the complex logic of one or * sev 阅读全文
posted @ 2023-10-08 11:56 ®Geovin Du Dream Park™ 阅读(25) 评论(0) 推荐(0)
摘要: /** * Decorator Pattern 装饰是一种结构设计模式, 允许你通过将对象放入特殊封装对象中来为原对象增加新的行为。 * The base Component interface defines operations that can be altered by * decorato 阅读全文
posted @ 2023-10-08 06:43 ®Geovin Du Dream Park™ 阅读(24) 评论(0) 推荐(0)
摘要: /** * Composite Pattern 组合是一种结构型设计模式, 你可以使用它将对象组合成树状结构, 并且能像使用独立对象一样使用它们。 * https://refactoringguru.cn/design-patterns/composite/typescript/example#la 阅读全文
posted @ 2023-10-08 06:20 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0)