//函数体中return下面的代码不执行,但是需要预解析 function fn(){ console.log(num);//undefined return function(){
}; var num=100; } fn();