2016年4月26日
摘要: //js继承之借用构造函数 //为了解决原型中包含引用类型值所带来的问题,我们用借用构造函数 function Father(){ this.colors = ["red" , "blue" , "yellow"]; } function Son(){ //继承了Father Father.call(this); } v... 阅读全文
posted @ 2016-04-26 09:26 宝清老窖 阅读(163) 评论(0) 推荐(0) 编辑