Pass into the target method as parameters local-scope variables that are read from the extracted code.
将被提取代码段中会读取其值的局部变量作为参数传给新方法。
We mentioned in the scope activity section that you can declare local variables within a scope.
我们在范围活动部分中已提到,您可以在范围中声明本地变量。
We'll see below that it is useful to define a scope as a direct child of an event handler in order to have scoped variables that are local to the event handler instance.
我们将在下面了解到,为了获得事件处理程序实例的已确定范围的局部变量,可以将活动的范围定义为事件处理程序的直接子项。
This scope is required to define local variables so that each event handler instance uses its own data.
定义局部变量要求使用此范围,以便每个事件处理程序实例都使用其自身的数据。
A scope activity lets you define local variables, local correlation sets, and various handlers.
范围活动允许您定义本地变量,本地相关集和各种处理程序。
A scope can provide fault handlers, event handlers, a compensation handler, local variables, local partner links, and local correlation sets.
范围可以提供错误处理程序、事件处理程序、补偿处理程序、局部变量、本地伙伴连接和本地相关集。
One limitation of inner classes - and lambda expressions too - is that they can only refer to final local variables from their lexical scope.
内部类以及lambda表达式一个局限性是——它们只引用来自它们的词法作用域的最终(final)局部变量。
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.
在所有的浏览器下,访问局部变量都比访问跨作用域的变量要快,当然也包括全局变量。
This code can refer to local variables defined within the block, arguments to the closure, or variables from the scope in which the closure is created.
这段代码可以引用块中定义的局部变量、闭包的参数以及创建闭包的作用域中的变量。
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.
仔细检查函数中所有使用的变量,如果有一个变量不是当前作用域定义的,而且使用了不止一次,那么我们就应该把这个变量保存在局部变量中,而使用这个局部变量来进行读写操作。
The line xdebug.show_local_vars = 1 prints all local variables in the outermost scope of each function call, including variables not yet initialized.
代码行 xdebug.show_local_vars =1将打印每个函数调用的最外围中的所有局部变量,包括尚未初始化的变量。
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.
定义一个类的时候,会创建一个新的命名空间,将其作为局部作用域使用——因此,所以对局部变量的赋值都引入新的命名空间。
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.
当输入了一个类定义,一个新的名字空间被创建,并作为局部域使用——这样,所有对局部变量的赋值都将进入这个新的名字空间。
What is more interesting is that the closure actually packages a local context (stack frame where some variables reside) and makes it available outside the scope in which they actually exist.
更有趣的是闭包实际上包裹了一个本地语境(变量所处的栈框架)并使其在他们实际的可见范围之外可见。
Local variables are faster to access than out-of-scope variables because they exist in the first variable object of the scope chain.
局部变量比域外变量快,因为它位于作用域链的第一个对象中。
Gets a count of the local variables defined within this scope.
取得在这个范围内定义的区域变数计数。
They are local variables and have local scope.
它们是局部变量,作用域是局限性的。
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).
使用这个函数去清除VARIANTARG(或VARIANT)类型的变量在内存包含的VARIANTARG被释放(当一个局部变量超出作用域时)。
应用推荐