📜  原型,__proto__ - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:22.404000             🧑  作者: Mango

代码示例1
console.log(Dog.prototype);
// constructor: ƒ Dog(name, breed) bark: ƒ bark()

console.log(dog1.__proto__);
// constructor: ƒ Dog(name, breed) bark: ƒ bark()