摘要: function getBeerById( id, callback){ _request('GET','URL'+id,function(res){ callback(res.responseText) }); }; function getBeerByIdBridge(){ getBeerById(id,function(res){ alert(res.toString()); }); //doAnothering; }; var el = do... 阅读全文
posted @ 2013-11-18 17:34 方方和圆圆 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 简单的装饰模式 抄自tom大叔的博客。热门那边就有了,去学习吧 阅读全文
posted @ 2013-11-18 16:44 方方和圆圆 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 工厂模式,抄自tamu大叔博客的 阅读全文
posted @ 2013-11-18 09:37 方方和圆圆 阅读(415) 评论(0) 推荐(0) 编辑

再过一百年, 我会在哪里?