摘要: 使用情景区别listenTo用于监听自身意外的对象on用于监听自身listenTo和on中的回调函数里的this的区别listener.listenTo(object, 'eventName', function(){ //此处的this指向listener})object.on('eventName', function(){ //此处的this指向object})object.on('eventName', function(){ //此处的this指向context}, context)触发顺序当存在同名事件时,会按定义顺序执行,on和li 阅读全文
posted @ 2013-10-17 23:05 will_kan 阅读(1570) 评论(0) 推荐(0) 编辑