会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
code_文文
博客园
首页
新随笔
联系
订阅
管理
2018年2月22日
JS继承实现的几种方式
摘要: //继承的几种实现: //解决方案1.通过原型继承 function Parent1(){ this.name = 'Parent1'; } function Child1(){} Child1.prototype = new Parent1(); //问题1:1.父类属性中存在引用类型属性时,会出
阅读全文
posted @ 2018-02-22 02:05 code_文文
阅读(185)
评论(0)
推荐(1)
编辑
公告