摘要:
[Don't use closures unless you really need closure semantics.]不要使用闭包,除非你真正需要它。[In most cases, non-nested functions arethe right way to go.]请使用无嵌套函数。闭包的应用场景一闭包的应用场景二闭包的应用场景三-------------------------------------------什么是闭包?function a(){ var i=0;function b(){ alert(i); } return b; } var c = a(); c( 阅读全文