bbb();function bbb () { var a = 5; aaa();//这样会报错:a is not defined(function aaa(){ //写成这样就不会报错,为什么? alert(a); })();}function aaa () { alert(a);} 查看完整描述