Model-View-Controller MVC模式

A compound pattern combines two or more patterns into a solution that solves a recurring or general problem.

  1. View根据用户的操作调用对应的Controller的方法。
  2. Controller从Model获得当前状态的信息,并修改Model的状态。
  3. Model状态修改后通知View,View修改显示信息。
A Pattern is a solution to a problem in a context.
The context is the situation in which the pattern applies. This should be a recurring situation.
The problem refers to the goal you are trying to achieve in this context, but it also refers to any constraints that occur in the context.
The solution is what you re after: a general design that anyone can apply which resolves the goal and set of constraints.

Creational Patterns:
  1. Singleton
  2. Builder
  3. Abstract Factory
  4. Factory Method
  5. Prototype

Behavioral Patterns:
  1. Template Method
  2. Command
  3. Observer
  4. Strategy
  5. State
  6. Iterator
  7. Visitor
  8. Mediator
  9. Memento
  10. Interpreter
  11. Chain of Responsibility

Structural Patterns:
  1. Proxy
  2. Decorator
  3. Composite
  4. Facade
  5. Adapter
  6. Flyweight
  7. Bridge
In GoF classic Design Patterns, there 23 patterns.

http://c2.com/cgi/wiki?CategoryPattern

http://hillside.net/patterns/education

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值