前端学习笔记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)

运行结果

 

posted @ 2023-09-19 19:12  前端导师歌谣  阅读(10)  评论(0)    收藏  举报  来源