var i = 0;
if(i < 2) {
let i = 2;
console.log(i) //2
}
console.log(i); // 0
[Web浏览器] "Uncaught SyntaxError: Unexpected identifier"
用浏览器打开是ok的
var i = 0;
if(i < 2) {
let i = 2;
console.log(i) //2
}
console.log(i); // 0
[Web浏览器] "Uncaught SyntaxError: Unexpected identifier"
用浏览器打开是ok的
5***@qq.com (作者)
ok``
2017-06-09 09:28