BadGirl_Xiao

导航

JS闭包

闭包:函数外使用了不属于自己的局部变量。

何时使用闭包:保护局部变量。

 

posted on 2017-08-01 16:10  BadGirl_Xiao  阅读(121)  评论(0编辑  收藏  举报