closures in js

A closure is a function that includes (closes) external objects that do not belong to itself.

A closure is a function that has access to a variable in the scope of another function . The usual way to create a closure is to create another function inside a function.

http://www.jb51.net/article/126565.htm

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324931370&siteId=291194637