(function(){ var a =10; (function(){ alert(a);//亮点:这里的输出真的会是"10"吗? var a = 20; alert(a); })()})();//该片段来自于http://www.codesnippet.cn/detail/191220138162.html
来源: http://www.codesnippet.cn/detail/191220138162.html