function Box(){ this.aaa=123; } var box=new Box(); console.log(box.aaa); console.log(box.__proto__); console.log(Box.prototype==box.__proto__); console.log(box.__proto__.constructor.__proto__.constructor); console.log(box.__proto__.constructor);
结果:
时间: 2024-11-03 21:07:30