代理的作用

  1、实现监听的思想,对象A可以监听对象B状态

  2、通知的思想,对一个对象A的状态发生改变时就会通知对象B知道

原文地址:https://www.cnblogs.com/loserof/p/4096264.html