var a = 0;function test(){
alert(a); if(false){ var a = 100;
}
}
test();為什么alert(undefind);而不是alert 0
js有個問題有點疑惑
慕仙森
2018-09-13 13:10:14