摘要:
class Event { constructor() { this.eventObj = {}; } $on(eventName, fn) { if (!this.eventObj[eventName]) { this.eventObj[eventName] = []; } this.eventO 阅读全文
摘要:
bind bind用法fn.bind(thisobj,参数1,参数2,。。。) this.a = 1; var mode = { a: 10, getA: function (...rest) { return rest.reduce((pre, value) => { console.log(pr 阅读全文