#暂时性

暂时性死区TDZ理解与总结

  为什么会出现暂时性死区?  先来看看ES6标准中对let/const声明中的解释第13章,有如下一段文字:Thevariablesarecreated when theircontainingLexicalEnvironment is instantiatedbutmay&n...