javascript设计模式系列 创建型: 1.抽象工厂模式(Abstract Factory) 2.构建者模式(Builder) 3.工厂方法模式(Factory Method) 4.原型模式(Prototype) 5.单例模式(Singleton) 结构型: 1.适配器模式(Adapter) 2.桥接模式(Bridge) 3.组合模式(Compositor) 4.装饰者模式(Decorator) 5.外观模式(Facade) 6.享元模式(Flyweight) 7.代理模式(Proxy) 行为: 1.职责链模式(Chain of Responsibility) 2.命令模式(Command) 3.解释器模式(Interpreter) 4.迭代器模式(Iterator) 5.中介者模式(Mediator) 6.备忘录模式(Memento) 7.观察者模式(Observer) 8.状态模式(State) 9.策略模式(Strategy) 10.模板方法模式(Template Method) 11.访问者模式(Visitor)