它们是对象原型的属性,但是与状态变量不同,它们具有清单17所示的默认值。
They are properties of the object prototype, but unlike the state variables, they have default values as shown in Listing 17.
由于内部函数持有到外部函数的变量的引用,所以这个带属性a的范围对象将不会被垃圾收集。
Because the inner function holds a reference to the outer function's variables, the scope object with property a will not be garbage collected.
groupDN是一个强制属性,用于指定要检索的LDAP对象的专有名称,并且可以包含上下文变量。
GroupDN is a mandatory attribute that specifies the distinguished name of the LDAP object to be retrieved and can contain context variables.
可以首先将一个按钮声明为一个变量,或者直接在其父对象的content属性中定义它。
You can declare a button first as a variable or define it directly in the parent object's content attribute. Listing 9 displays the definition of the Back button
设观测向量x(也被称作特征、属性、变量、测量值等)对于对象或事件的每一个采样的所属类y都是已知的。
Consider a set of observations (also called features, attributes, variables or measurements) for each sample of an object or event with known class y.
$this 伪变量提供了一种用于对象引用自己的属性和方法的机制。
The $this pseudo-variable provides a mechanism for objects to refer to their own properties and methods.
该类型的变量创建确定哪些属性的对象是多变的。
The type of variable you create determines which attributes of the object are changeable.
var和scope属性用来指定限定了作用域的变量(作为 <fmt:parseDate> 的结果),将把Date对象赋给该变量。
The var and scope attributes are used to specify a scoped variable that -- as a result of <fmt:parseDate> -- the Date object is assigned to.
要处理此行为,请使用早期绑定对象或传递变量而不是对象的属性。
To work around this behavior, use early-bound objects or pass a variable instead of a property of the object.
一般来说,如果在同一个函数中你要多次读取同一个对象属性,最好将它存入一个局部变量。
Generally speaking, if you're going to read an object property more than one time in a function, it's best to store that property value in a local variable.
既然两次对象搜索都在读属性值,所以有理由只读一次并将值存入局部变量中。
Since both member lookups were reading the property's value, it makes sense to read the value once and store it in a local variable.
每次循环执行,属性变量被填充以对象属性的名字(一个字符串),直到所有的对象属性遍历完成才返回。
Each time the loop is executed, the prop variable is filled with the name of another property (a string) that exists on the object until all properties have been returned.
获取一个对象属性多次连续获得一次与存储在变量。将编译器的优化呢?
Getting an object property multiple times in a row vs getting it once and storing in a variable. Will the compiler optimize it anyway?
包括类、对象、变量、方法和属性的名称。
These include the names of classes, objects, variables, methods, and properties.
变量名通常要比访问对象本身所需的方法和属性的完整路径短和容易记忆。
A variable name is often shorter and easier to remember than the full path of methods and properties necessary to access the object itself.
获取一个对象属性多次连续获得一次与存储在变量。
Getting an object property multiple times in a row vs getting it once and storing in a variable.
与通过所需的方法或属性来重复访问对象本身相比,使用引用对象的变量更有效。
Using a variable that refers to an object is more efficient than repeatedly accessing the object itself through the necessary methods or properties.
与通过所需的方法或属性来重复访问对象本身相比,使用引用对象的变量更有效。
Using a variable that refers to an object is more efficient than repeatedly accessing the object itself through the necessary methods or properties.
应用推荐