随笔分类 -  js设计模式的代码

摘要:无标题文档 阅读全文
posted @ 2013-11-21 23:58 方方和圆圆 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-21 23:56 方方和圆圆 阅读(500) 评论(0) 推荐(0) 编辑
摘要:无标题文档 阅读全文
posted @ 2013-11-19 23:34 方方和圆圆 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-19 23:02 方方和圆圆 阅读(440) 评论(0) 推荐(0) 编辑
摘要: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 方方和圆圆 阅读(261) 评论(0) 推荐(0) 编辑
摘要:简单的装饰模式 抄自tom大叔的博客。热门那边就有了,去学习吧 阅读全文
posted @ 2013-11-18 16:44 方方和圆圆 阅读(206) 评论(0) 推荐(0) 编辑
摘要:工厂模式,抄自tamu大叔博客的 阅读全文
posted @ 2013-11-18 09:37 方方和圆圆 阅读(416) 评论(0) 推荐(0) 编辑
摘要:parten 阅读全文
posted @ 2013-11-17 23:46 方方和圆圆 阅读(548) 评论(0) 推荐(0) 编辑
摘要://singletonvar SingletonTester = (function(){ function Singleton(options){ options = options || {}; this.name = "SingletonTester"; this.pointX = options.pointX || 6; this.pointY = options.pointY || 10; }; var instance; var _static = { name : "Single... 阅读全文
posted @ 2013-11-17 23:44 方方和圆圆 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-17 18:58 方方和圆圆 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-17 17:41 方方和圆圆 阅读(653) 评论(0) 推荐(0) 编辑
摘要:直接上代码了 阅读全文
posted @ 2013-11-17 17:03 方方和圆圆 阅读(499) 评论(0) 推荐(0) 编辑

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

🚀
回顶
收起
点击右上角即可分享
微信分享提示