Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精读《设计模式 - Decorator 装饰器模式》 #286

Closed
ascoders opened this issue Nov 29, 2020 · 0 comments
Closed

精读《设计模式 - Decorator 装饰器模式》 #286

ascoders opened this issue Nov 29, 2020 · 0 comments

Comments

@ascoders
Copy link
Owner

ascoders commented Nov 29, 2020

用过 redux 的 @connect 或者 angular 依赖注入 @Inject 的同学,一定对装饰器模式不陌生,装饰器模式是一种灵活的动态拓展对象功能的模式,相比于生成子类更灵活。


精读《设计模式 - Decorator 装饰器模式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant