a=100; function dome(e) { function e() {}; arguments[0]=2; console.log(e); // 2 if(a){ var b=123; function c(){} } var c; a=10; var a; console.log(b); //undefined f=123; console.log(c); // undefined console.log(a); //10 } var a; dome(1); console.log(a);//100 console.log(f);//123
function bar() { return foo; foo = 10; function foo() { }; var foo = 11; } console.log(bar());
console.log(bar()); function bar(){ foo=10; function foo(){}; var foo=11; return foo;
}
可是试这看看输出啥(这是预编译的东西)