https://www.bilibili.com/video/BV1sp4y197ro
观察者模式
原文:https://www.cnblogs.com/zx96blog/p/12828081.html