守则是:
x = 10; if (x > 1) { var x = x + 1; } console.log(x); var x;
代码执行的输出是: 11
为什么是11?,为什么不是一个错误?
https://stackoverflow.com/questions/71349814
相似问题