在局部作用域内引用全局元素和属性。
Referencing global elements and attributes in a local scope.
通常情况下,局部作用域引用当前函数的局部名字。
Usually the local scope references the local names of the (textually) current function.
RCC通过局部作用域的id解决了这个问题。
在函数之外,局部作用域与全局使用域引用同一命名空间:模块命名空间。
Outside functions, the local scope references the same namespace as the global scope: the module's namespace.
在函数之外,局部作用域与全局使用域引用同一命名空间:模块命名空间。
Outside of functions, the local scope references the same namespace as the global scope: the module's namespace.
确定应该将模式粒子定义为具有局部作用域还是全局作用域并不总是那么容易。
It's not always easy to determine whether you should define schema particles with local or global scope.
在函数之外,局部作用域引用全局作用域相同的名字空间:模块的名字空间。
Outside functions the local scope references the same namespace as the global scope: the module's namespace.
一个CSS模块就是一个CSS文件,这个文件包含的所有类名和动画名默认都是局部作用域的。
CSS Module is a CSS file in which all class names and animation names are scoped locally by default.
然而之所以这些结果会出其不意,是因为你会以为局部作用域会在定义它的函数退出时也不再存在了。
The reason that these results are surprising, however, is that you expect local scopes to cease to exist when the function that defines them exits.
在本文中,我们首先展示如何为各种模式粒子定义全局或局部作用域,并解释作用域将如何影响它们的行为。
In this article, we'll first show how global or local scope is defined for various schema particles and explain how scope affects their behavior.
定义一个类的时候,会创建一个新的命名空间,将其作为局部作用域使用——因此,所以对局部变量的赋值都引入新的命名空间。
When a class definition is entered, a new namespace is created, and used as the local scope — thus, all assignments to local variables go into this new namespace.
Firefox 3.1Beta2的表现有点出人意料,对于局部变量执行的效率非常高,但随着作用域层数的增加,效率便大打折扣。
Firefox 3.1 Beta 2 was somewhat surprising as local variable writes were very fast but performance degraded significantly once the variable was out of the local scope.
这就意味着在执行with的过程中,实际上的局部变量都被移到作用域链上的第二个位置,这会带来性能上的损失。
This means that local variables actually move to an identifier depth of two during execution of the with, imposing a performance penalty.
在所有的浏览器下,访问局部变量都比访问跨作用域的变量要快,当然也包括全局变量。
In almost all browsers, local variables are faster for both reading and writing than out-of-scope variables including globals. You can take advantage of this knowledge in several ways.
仔细检查函数中所有使用的变量,如果有一个变量不是当前作用域定义的,而且使用了不止一次,那么我们就应该把这个变量保存在局部变量中,而使用这个局部变量来进行读写操作。
Watch the variables being used in a function. If you notice a function using an out-of-scope variable more than once, store it in a local variable and use that instead.
内部类以及lambda表达式一个局限性是——它们只引用来自它们的词法作用域的最终(final)局部变量。
One limitation of inner classes - and lambda expressions too - is that they can only refer to final local variables from their lexical scope.
由于zipCode元素的定义位于address元素的声明中,所以它是一个局部定义,它的作用域只在address元素中。
Because the definition of the zipCode element is within the declaration of the address element, it is a local definition and has scope only inside an address element.
TestNG的parameter元素的作用域是局部的,这对我来说是件好事。
It's a good thing for me that TestNG's parameter elements are locally scoped.
但为了解释作用域与重载的相互作用,我们将违反上述规则而使用局部函数声明。
To explain how scope interacts with overloading we will violate this practice and use a local function declaration.
它们是局部变量,作用域是局限性的。
块(6.3)中声明的名字是局部于这个块的。它的潜在作用域从其声明点(3.3.1)开始,到其声明区域的结尾结束。
A name declared in a block (6.3) is local to that block. Its potential scope begins at its point of declaration (3.3.1) and ends at the end of its declarative region.
局部变量比域外变量快,因为它位于作用域链的第一个对象中。
Local variables are faster to access than out-of-scope variables because they exist in the first variable object of the scope chain.
在函数中局部声明的名字将屏蔽在全局作用域(第2.3.6节)内声明的同名名字。
A name declared local to a function hides the same name declared in the global scope (Section 2.3.6, p. 54).
使用这个函数去清除VARIANTARG(或VARIANT)类型的变量在内存包含的VARIANTARG被释放(当一个局部变量超出作用域时)。
Use this function to clear variables of type VARIANTARG (or VARIANT) before the memory that contains the VARIANTARG is freed (as when a local variable goes out of scope).
使用这个函数去清除VARIANTARG(或VARIANT)类型的变量在内存包含的VARIANTARG被释放(当一个局部变量超出作用域时)。
Use this function to clear variables of type VARIANTARG (or VARIANT) before the memory that contains the VARIANTARG is freed (as when a local variable goes out of scope).
应用推荐