会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
尽世间恶丑
博客园
首页
新随笔
联系
订阅
管理
2020年9月2日
9.3 es6 class一部分 and es5 class 发布订阅
摘要: function Events(params) { this.events = [] } //订阅 Events.prototype.on = function (eventName,eventFn) { if(!this.events[eventName]) { //把事件存起来 ,有就push没
阅读全文
posted @ 2020-09-02 22:43 尽世间恶丑
阅读(188)
评论(0)
推荐(0)
编辑
公告