2011年6月22日
摘要: [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( 阅读全文
posted @ 2011-06-22 01:22 林枫山 阅读(24149) 评论(0) 推荐(6) 编辑