摘要:
/** * Observer Pattern 观察者是一种行为设计模式, 允许一个对象将其状态的改变通知其他对象 * file: Observerts.ts * The Subject interface declares a set of methods for managing subscrib 阅读全文
posted @ 2023-10-12 18:16
®Geovin Du Dream Park™
阅读(3)评论(0)推荐(0)
编辑
摘要:
/** * State Pattern 状态是一种行为设计模式, 让你能在一个对象的内部状态变化时改变其行为。 * The Context defines the interface of interest to clients. It also maintains a * reference to 阅读全文
posted @ 2023-10-11 18:11
®Geovin Du Dream Park™
阅读(3)评论(0)推荐(0)
编辑
摘要:
/** * Memento Pattern 备忘录是一种行为设计模式, 允许生成对象状态的快照并在以后将其还原。 * The Originator holds some important state that may change over time. It also * defines a me 阅读全文
posted @ 2023-10-11 18:02
®Geovin Du Dream Park™
阅读(4)评论(0)推荐(0)
编辑