observer

  • 观察者模式

    Define a one-to-many dependency between objects so that when one objects changes state, all its dependents are notified and updated automatically.(定义对象间一种一对多的依赖关系,使得每当一个对象改变状态,则所有依赖于它的对象都会得到通知并被自动更新。)

本文总阅读量 次 本站总访问量 次 本站总访客数