Please note that you need isolated scopes only if your scope reads a global variable in one transaction and updates the same global variable in another transaction.
请注意,只有您的范围在一个事务中读取全局变量,并在另一个事务中更新同一全局变量时,才需要使用范围隔离。
In this case, you will use the default, which is a variable in the parameter scope.
在目前的情况下,您可以使用默认值,这是一个参数范围内的变量。
And because each global variable has session scope, every session has its own private value that it can manipulate and use and no other session can access that value.
并且由于每个全局变量以会话为范围,所有会话都拥有自己的私有值进行操作和使用,而其他会话无法访问这些私有值。
You can declare and initialize a test variable, set its scope, and change its value.
您可以声明并初始化一个测试变量,设置它的范围,并更改它的值。
When a closure "captures" a variable it "lifts" the variable out of its local scope and effectively moves it into an anonymous object.
当一个闭包“捕获”一个变量时,它就会将这个变量提取出它的本地范围,移到一个匿名对象里。
If the variable wasn't declared in any block, its scope is from the place it was declared to the end of the file.
假如变量未在任何块里申明,它的作用域就是从申明它的地方开始,到文件的结尾。
To declare one, make sure no scope activities are selected when you add a variable.
要声明一个变量,请确保在添加变量时没有选择任何范围活动。
Initialize the session scope variable.
初始化会话范围变量。
Set the variable scope to limit variables to live only within a "session".
还要设置变量作用域,以限制变量只在某个“会话”中活动。
A collaboration scope also includes a special variable called a collaboration folder, which can be used to attach document links to the business process.
协作范围还包括一个称为协作文件夹的特殊变量,可以将其用于向业务流程附加文档链接。
For example, the explanation of stacks and register frames in Chapter 6 connected with Chapter 4's explanation of variable scope.
例如,在第6章中对栈和寄存器结构的解释要联系到第4章中对变量作用域的解释。
The scope of the domain is variable and can range from a cell, cluster, or node to a node group or application server.
域的范围是可变的,可以从单元、集群或节点,到节点组或应用程序服务器。
The functions themselves only exist in the scope of the variable of which they are defined, so when that variable goes out of scope, so does the function.
函数本身仅存在于定义函数的变量范围内,因此当该变量超出范围时,函数也超出范围。
Also when a global variable is referenced inside a function or another scope, the script engine has to search through the whole scope to find it.
当在函数或其它地方引用一个全局变量时,脚本引擎需要搜索整个全局命名空间。
Figure 7 and Figure 9 show two options for setting a variable scope.
图7及图9显示了设置变量范围的两个选项。
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.
仔细检查函数中所有使用的变量,如果有一个变量不是当前作用域定义的,而且使用了不止一次,那么我们就应该把这个变量保存在局部变量中,而使用这个局部变量来进行读写操作。
For example, let's say that you wanted to create a macro that introduced a variable into a scope that could be used by the person calling the macro.
例如,假设您希望创建一个宏,它将一个变量引入调用宏的人可以使用的范围中。
He therefore sees the rationale for separating ownership and management, since asset-light firms, having more variable costs, have more scope for efficiency gains.
他认为将酒店的运营管理和拥有权分离有其合理依据,因为在轻资产模式下,企业的运营成本更具弹性,因此也有更多的空间来提高效率,增加收益。
Managing variable and member scope.
管理变量和成员作用域。
The SetValueBindingHandler just defines a variable and puts the variable in the Facelets scope so your logic tags can reuse the variable.
SetValueBindingHandler 只定义了一个变量并把变量放置在Facelets 作用域内,这样您的逻辑标记就可以重用该变量。
The scope attribute controls the scoping of this variable, and defaults to page scope.
scope属性控制该变量的作用域,缺省情况下是页面作用域。
Observe that it can refer to any variable live in the lexical scope (in this example, min).
注意到,它能够引用词法作用域中的任何变量(本例中是min)。
Then, a JSP variable named varAlias is created in the page scope of the tag file with jspContext.setAttribute().
然后,通过 jspContext.setAttribute()在标记文件的页面范围内创建一个名为 varAlias的JSP变量。
As usual, the scope attribute specifies the scope for this variable assignment.
通常,scope属性规定这类变量分配的范围。
The [[Scope]] property is actually a list of variable objects accessible from the function’s containing scope.
实际上,[[Scope]]属性对应的是一个对象(Variable Objects)列表,列表中的对象是可以从函数内部访问的。
It explains how to initialize the session scope variable to display the data corresponding to the initial value of the Combo Box control at application startup.
本文阐述了如何初始化会话范围变量,使之显示出与应用程序启动时ComboBox控件的初始值相对应的数据。
You can also hit Ctrl+Space to get all identifiers available in the current scope (such as variable and type names).
还可以使用Ctrl+空格获得当前范围内所有可用的标识符(比如变量与类型名等)。
You can also hit Ctrl+Space to get all identifiers available in the current scope (such as variable and type names).
还可以使用Ctrl+空格获得当前范围内所有可用的标识符(比如变量与类型名等)。
应用推荐