var person = {
username: "xxx"
}
var yellowPerson = {
__proto__: person //内部原型 增强的字面量
}
console.log(yellowPerson.username);
console.log(yellowPerson);
console.log(yellowPerson.__proto__);
prototype 和__proto__
最新推荐文章于 2022-07-24 15:21:10 发布