foo();//Uncaught TypeError: foo is not a functionvar a=true;if(a){ function foo(){console.log("a");} }else{ function foo(){console.log("b");} } 查看完整描述