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()
守候你守候我
喵喔喔
随时随地看视频慕课网APP
相关分类