摘要: 1、构造函数继承 function Parent(name){ this.name=name; } Parent.prototype.saiHi=function(){ console.log("hello") } function child(name,age,gender){ Parent.ca 阅读全文
posted @ 2020-03-22 17:47 尼古拉斯-富贵 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 参考博文:https://www.cnblogs.com/Leo_wl/p/5734794.html 阅读全文
posted @ 2020-03-22 17:07 尼古拉斯-富贵 阅读(177) 评论(0) 推荐(0) 编辑