https://github.com/7kms/design-pattern
https://github.com/7kms/design-pattern
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/7kms/design-pattern
- Owner: 7kms
- Created: 2017-11-14T15:34:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T15:59:57.000Z (over 8 years ago)
- Last Synced: 2025-08-23T11:04:49.628Z (10 months ago)
- Language: JavaScript
- Size: 162 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 重读 javascript 设计模式
### 设计模式
1. [原型模式](./prototype/index.md)
2. [单例模式](./singleton/index.md)
3. [策略模式](./strategy/index.md)
4. [代理模式](./proxy/index.md)
5. [迭代器模式](./iterator/index.md)
6. [发布订阅(观察者)模式](./observer/index.md)
7. [命令模式](./command/index.md)
8. [组合模式](./composite/index.md)
9. [模板方法模式](./template/index.md)
10. [享元模式](./flyweight/index.md)
11. [职责链模式](./responsibility/index.md)
12. [中介者模式](./mediator/index.md)
13. [装饰者模式](./decorator/index.md)
14. [状态模式](./status/index.md)
15. [适配器模式](./adapter/index.md)
### 设计原则和编程技巧
1. 单一职责问题
2. 最少知识原则
3. 开放-封闭原则
4. 接口和面向接口编程