Therefore, the prototype chain can be used to implement inheritance, as you'll see later.
因此,该原型链可用于实现继承(在后面讨论)。
You'll set a prototype instance variable to point to the parent in the inheritance chain.
方法是设置 prototype 实例变量使其指向继承链的父。
The returned properties are both those that exist on the object instance and those inherited through its prototype chain.
返回的属性包括对象的实例属性和它从原型链继承而来的属性。
应用推荐