对象有 __proto__
函数有 prototype
对象的__proto__指向构造自己的函数的prototype
但有一例外
var Obj = {v:99}var pObj = Object.create(Obj);console.log(pObj.__proto__ === Obj) // true
Powered by: 博客园 Copyright © 2024 jjw Powered by .NET 8.0 on Kubernetes