A nested, or inner, function can inherit the arguments and variables of its outer function, and is private to that function.
一个嵌套的内部函数可以继承外部函数的参数和变量,并由该外部函数私有。
Closures are powerful because they enable inner functions to retain access to an outer function's variables even after the outer function has returned.
闭包功能非常强大,原因是它们使内部函数在外部函数返回时也仍然可以保留对此外部函数的变量的访问。
When an inner function gains and USES access to its outer function's variables it is known as a closure.
当内部函数获得和使用其外部函数的变量时,就称其为一个闭包。
Later, after the outer function has returned, when the inner function is called, the outer function's local variables will still be available to it.
这样的话,当外部函数返回之后,在调用内部函数时,外部函数的局部变量仍然是可用的。
Because the inner function holds a reference to the outer function's variables, the scope object with property a will not be garbage collected.
由于内部函数持有到外部函数的变量的引用,所以这个带属性a的范围对象将不会被垃圾收集。
FETCH (13) and UPDATE (15) actually read and assign values to the outer of NLJOIN (9) overriding the defaults for the local variables.
FETCH(13)和UPDATE(15)实际上是读取NLJOIN(9)的外表的值,并赋上新值,覆盖本地变量的默认值。
FETCH (13) and UPDATE (15) actually read and assign values to the outer of NLJOIN (9) overriding the defaults for the local variables.
FETCH(13)和UPDATE(15)实际上是读取NLJOIN(9)的外表的值,并赋上新值,覆盖本地变量的默认值。
应用推荐