- 博客(3)
- 收藏
- 关注
原创 Javascript 笔记 面向对象原型链继承方式
原型法继承多用于继承方法//原型法继承function Person(){ this.head = 1; this.foot = 2;}function Star(name,age){ this.name = name; this.age = age;}Star.prototype = new Person();Star.prototype.constructor = ...
2020-01-11 17:13:50
140
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅