Skip to content

Commit 875353a

Browse files
authored
Update README.md
1 parent 7748944 commit 875353a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
## 观察者模式
22

3+
### 定义  
4+
观察者模式定义了一种一对多的依赖关系,让多个观察者对象同时监听某一个主题对象。这个主题对象在状态模式发生改变时,会通知所有观察者对象,使它们能够自动更新自己。
5+

0 commit comments

Comments
 (0)