总结 JavaScript 开发中的设计模式
一、面向对象重要概念
二、创建型模式
- 单例模式(Singleton)
三、结构型模式
- 代理模式(Proxy)
- 组合模式(Composite)
- 适配器模式(Adapter)
- 装饰者模式(Decrator)
- 享元模式(Flyweight)
四、行为型模式
- 观察者模式(Observer)
- 迭代器模式(Iterator)
- 命令模式(Command)
- 策略模式(Strategy)
- 模板方法模式(Template Method)
- 中介者模式(Mediator)
- 职责链模式(Chain of Responsibility)
- 状态模式(State)