更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/120055573
// 父类function P(name) {this.name = name;}// 父类方法P.prototype.get=function(){return this.name;}// 子类function C(name){P.call(this,name);}// 封装继承。也就是C.p...