Skip to content

原型链

  • 函数有一个属性是prototype 这个我们称之为显示原型
  • 对象有一个属性是__proto__ 这个我们称之为隐式原型,__proto__他指向构造函数的prototype
prototype = {
    __proto__: Object.prototype = {
        __proto__: null
    }
}