1。首先基于一个观察者模式。 module 2. 基于一个provide数据访问模式。 转载于:https://www.cnblogs.com/Elong/archive/2006/12/12/590084.html