function test(x)
{
var x = 10; window.alert(arguments[0]);
window.alert(x);
}
test(); //输出undefined和10
test(1); //输出10和10谁能给解释下原理?