摘要: var pubsub = (function(){ var q = {} topics = {}, subUid = -1; //发布消息 q.publish = function(topic, args) { if(!topics[topic]) {return;} var subs = topics[to... 阅读全文
posted @ 2016-08-09 18:13 石中隐鱼 阅读(171) 评论(0) 推荐(0) 编辑