《JavaScript模式》第6章 代码复用模式
摘要:"@by Ruth92" (转载请注明出处) 第6章:代码复用模式 GoF 在其著作中提出的有关创建对象的建议原则: —— 优先使用对象组合,而不是类继承。 传统模式:使用类继承; 现代模式:“类式继承”,不以类的方式考虑。 代码重用才是最终目的,继承只是实现这一目标的方法之一。 ☞ 使用类式继承时
阅读全文
posted @ 2016-10-08 11:35
Scoop It and Enjoy the Ride! 简书地址:http://www.jianshu.com/u/c817733cbef1
posted @ 2016-10-08 11:35
posted @ 2016-10-08 09:46
posted @ 2016-10-03 10:57
posted @ 2016-10-03 10:22