摘要: var publisher = { // 一个由数组组成的集合 subscribers : { any : []// 事件类型: 订阅者(subsribes) }, // 将订阅者加入数组 // subscribers : { any : [fn], weekly : [fn], monthly : [fn]} subscribe : function(fn, type){ type = type || 'any'; if(typeof this.subscr... 阅读全文
posted @ 2013-12-31 15:43 楚玉 阅读(229) 评论(0) 推荐(0) 编辑