热门

最新

红包

立Flag

投票

同城

我的

发布
gfhj778
Winlams
4 年前
truegfhj778

/**p1{
* __proto__: Persion.prototype={
* constructor:{
* __proto__: Object.prototype={
* //最祖先
* constructor: ƒ Object() { [native code] },
* prototype: undefined,
* __proto__: null,
* ...
* },
* prototype: undefined
* },
* __proto__: Object.prototype={
* //最祖先
* constructor: ƒ Object() { [native code] },
* prototype: undefined,
* __proto__: null,
* ...
* },
* prototype: undefined,
* ...
* },
* prototype: undefined
* }
* */
function Persion(){
this.name = "jeki"
}
let p1 = new Persion();
let o1 = new Object();
console.log(p1)
console.log(p1.__proto__===Persion.prototype)
console.log(Persion.__proto__.prototype)
console.log(Persion.prototype.__proto__ === Object.prototype)
console.log(Object.prototype.constructor)
console.log(Persion.prototype.__proto__ === Object.prototype)

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
收到来自CSDN的中秋祝福,非常开心!感谢CSDN问答客服小姐姐。
立即登录