闭包是一个函数、一个作用域,什么时候我们使用闭包来解决问题,当一个function,用for循环中的i,但是i不能被保存下来,我们要绑定一个事件,在这个事件中去取这个i,会在for循环中生成一个函数,这个函数是一个局部作用域,我们管这个局部作用域就叫做闭包。(再看看闭包)
Popular repositories Loading
-
-
type-challenges
type-challenges PublicForked from type-challenges/type-challenges
Collection of TypeScript type challenges with online judge
TypeScript
-
vue-element-admin
vue-element-admin PublicForked from PanJiaChen/vue-element-admin
🎉 A magical vue admin https://panjiachen.github.io/vue-element-admin
Vue
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.