摘要: Events = function() { var listen, log, obj, one, remove, trigger, __this; obj = {}; __this = this; listen = function(key, eventfn) { //把简历扔盒子, key就是联系方式. var stack; //stack是盒子 stack = obj[key] != null ? obj[key] : obj[key] = []; return stack.push(eventfn); }; one = function(key, eventf... 阅读全文
posted @ 2013-06-21 18:14 mguo 阅读(1883) 评论(0) 推荐(0) 编辑