摘要: 1.Lexical declaration cannot appear in a single-statement context 问题:如果没有大括号,JavaScript 引擎就认为不存在块级作用域。 可能的问题:少了大括号。 阅读全文