js事件模型bind、unbind、trigger实现
xiaoqi 发布于 2017-03-18
function Emitter(){ this._listener = {} } Emitter.prototype.bind = function(eventName,callback){ var […]
xiaoqi 发布于 2017-03-18
function Emitter(){ this._listener = {} } Emitter.prototype.bind = function(eventName,callback){ var […]