They are properties of the object prototype, but unlike the state variables, they have default values as shown in Listing 17.
它们是对象原型的属性,但是与状态变量不同,它们具有清单17所示的默认值。
The prototype for all RequiredValidator objects is a Validator instance, which has no properties because no parameters are passed to the Validator constructor.
所有RequiredValidator对象的原型都是一个Validator实例,该实例没有任何属性,因为没有参数传递给Validator构造函数。
Though all objects can read the properties of their prototype object without any issues, modifying them can cause certain issues.. Why is this so?
尽管所有的对象都能顺利的从prototype对象中读取属性,但是却无法修改它们,为什么会这样呢?
Still any code is allowed to modify properties defined on the prototype object as long as the modification is directly on the prototype object itself, and not on the instance.
尽管如此,我们仍然可以在对象的prototype的生命周期内来修改它本身的属性,但不是在对象的实例上。
The prototype object for Rectangle is associated with its constructor and any properties defined by the prototype object are inherited by each and every object created using the constructor.
Prototype对象与构造器有关,prototype对象里定义的任何属性都被每个由于构造器实例化的对象所继承。
The returned properties are both those that exist on the object instance and those inherited through its prototype chain.
返回的属性包括对象的实例属性和它从原型链继承而来的属性。
First, the special thermal environment of the thin atmosphere is analyzed, and two prototype super pressure balloons with different film radiation properties are designed.
首先分析了火星大气的特殊热环境。归纳了影响火星气球温度特性的主要环境因素,并设计了两种不同蒙皮辐射特性的原型超压气球。
A prototype chain is a finite chain of objects which is used to implemented inheritance and Shared properties.
原型链是一个由目标构成的有限目标链因为完成担当和同享属性。
A prototype chain is a finite chain of objects which is used to implemented inheritance and Shared properties.
原型链是一个由目标构成的有限目标链因为完成担当和同享属性。
应用推荐