前端学习笔记202309学习笔记第九十二天-原型7
function Test(){
this.a=1;
this.b=2;
}
Test.prototype.c=3
Test.prototype.d=4
Object.prototype.e=5
Object.prototype.f=6
const test=new Test()
console.log(test)
运行结果

function Test(){
this.a=1;
this.b=2;
}
Test.prototype.c=3
Test.prototype.d=4
Object.prototype.e=5
Object.prototype.f=6
const test=new Test()
console.log(test)
运行结果
