# design-pattern-typescript **Repository Path**: jialj/design-pattern-typescript ## Basic Information - **Project Name**: design-pattern-typescript - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-08 - **Last Updated**: 2022-08-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JavaScript Design Patterns The classic implementations of JavaScript design patterns commonly used. # 创建型 1. 工厂模式 (Factory Pattern) 2. 抽象工厂模式 (Abstract Factory) 3. 生成器模式 (Builder) 4. 原型模式 (Prototype) 5. 单例模式 (Singleton) # 结构型 1. 适配器模式 (Adapter) 2. 装饰器模式 (Decorator) 3. 代理模式 (Proxy) 4. 外观模式 (Facade) 5. 桥接模式 (Bridge) 6. 组合模式 (Composite) 7. 享元模式 (Flyweight) # 行为型 1. 策略模式 (Strategy) 2. 模版方法模式 (Template Method) 3. 发布订阅模式 (Publish Subscribe) 又称:观察者模式 (Observer) 4. 迭代器模式 (Iterator) 5. 责任链模式 (Chain of Responsibility) 6. 命令模式 (Command) 7. 备忘录模式 (Memento) 8. 状态模式 (State) 9. 访问者模式 (Visitor) 10. 中介者模式 (Mediator) 11. 解释器模式 (Interpreter) # Thanks to [设计模式](https://refactoringguru.cn/design-patterns) 《JavaScript设计模式与开发实践》 《设计模式:可复用面向对象软件的基础》