ECScript 6 杂篇

作者:大朗

let 不允许重声明。当 let 声明 a 时,再次声明将导致重复声明错误 Uncaught SyntaxError: Identifier '' has already been declared 错误的 (function ts(){ let a = 111; let a = 222; console.log(a);// Uncaught SyntaxEr ...