...是函数对象的一个内部属性,值是一个简单的对象,用户可以访问,操作 该对象,可以向原型对象里面添加属性、方法。 2.原型链(__proto__): 每个对象都具备的,不可访问的内部属性(指针)(chorm等浏览器可以访问,但无法操作),指针指向构造函数对应的原型对象。
基于28个网页-相关网页
因此,该原型链可用于实现继承(在后面讨论)。
Therefore, the prototype chain can be used to implement inheritance, as you'll see later.
原型链不在同一意义上提供任何保护。
The prototype chain does not provide any protection in that same sense.
同理,你也没有保证你的对象的原型链没有改变。
In a similar vein, you also have no guarantee that your object's prototype chain has not been altered.
应用推荐