var listenerObj //订阅者模式 function publicListener() { this.handlers = {} } publicListener.prototype = { on: function (eventType, handler) { var self = this; if (!(eventType

- 阅读全文 -