var x = 0;
var test = function(){
x=1;
}
test();
alert(x);
function test(){
x = 2;
}
test();
alert(x);
我试了一下输出1,1第二个函数没有执行,请大神讲讲
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
函数声明提前...请这样看这道题: