function Sup(){
this.name = 'adc';
this.arr = [1,2,3];
}
Sup.prototype.say = function(){
console.log(this.arr)
function Sub(){
Sup.call(this)
Sub.prototype = Sup.prototype
var c1 = new Sub()
var c2 = new Sub()
喵喔喔
相关分类