https://cloud.tencent.com/developer/article/1901837#:~:text=观察者模式(Observer,Pattern)主要解决的是当对象间存在一对多关系时当一个对象被修改,会自动通知依赖它的其它对象。