js common knowledge

Closure: A nested function with function B, B to the variable A program useful when an external function call C functions A, A have been implemented while, in theory, the function is finished, it is being popped off the stack, but As the use B to a, so a variable is stored in memory will not be destroyed, we call function B is closure.

 

Guess you like

Origin www.cnblogs.com/geekjsp/p/12364913.html