class User{
// 属性
sitr='hdsj';
constructor(name){
this.name=name;
}
getName(){
return this.name;
}
changeSite(value){
this.site=value;
}
show(){
return `${this.site}:${this.name}`;
}
}
let hd=new User("hdr");
console.log(hd.getName());
console.log(User==User.prototype.constructor)
hd.changeSite('ahdf');
console.log(hd.show());