摘要: //被观察者function Observed () { this.state = '不开心'; this.arr = [];}//将Observer注册到Observed上Observed.prototype.attach = function (s) { this.arr.push(s);}// 阅读全文
posted @ 2020-03-16 09:09 国服第一李师师 阅读(136) 评论(0) 推荐(0) 编辑