在JS中如果同时用变量和函数声明相同名字的函数,谁会先执行呢? function foo() { alert(2); } var foo = function() { alert(1); } foo(); ...