谁能给我讲讲闭包问题吗

解决方案 »

  1.   

    这种问题google最清楚不过了!!
    接分!
      

  2.   

    http://topic.csdn.net/u/20100423/16/ed1b147c-b9d5-4ccd-b0a3-59f36504cb4d.html
      

  3.   

    http://www.ruanyifeng.com/blog/2009/08/learning_javascript_closures.html
      

  4.   

    secrets of javascript closures 讲的很详细,例子举的很形象,英文的,配有中文注解。
    需要的话留个邮箱,我可以发给你。
      

  5.   

    闭包就是执行期保存的一段执行上下文var a=(function(t){return function(){alert(t);};})(5);
    a();其中function(t){return function(){alert(t);};} 被执行以后 变量t的值并不会消失,而是保存在了function(){alert(t);} 中返回给了a 这样 a再次执行的时候就会出来5的