- 博客(1)
- 收藏
- 关注
原创 JavaScript实现继承的几种方式
JavaScript实现继承的几种方式 原型继承 特点:方便 function Parent(){ } Parent.prototype.show=function(){ console.log("hello"); } function Child(){ } Child.prototype.abc=function(){ console.log("world"); } Child.prot...
2020-03-23 00:10:07 62
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人