摘要: // 简易版emit/on function Pubsub(){ //存放事件和对应的处理方法 this .handles = {}; } Pubsub.prototype={ //传入事件类型type和事件处理handle on: function (type, handle) { if (! t 阅读全文
posted @ 2019-12-23 19:52 Paxster 阅读(224) 评论(0) 推荐(0) 编辑