摘要: 先看下暂时性死区的例子 let a = 1 if (true) { console.log(a) let b = 2 } //输出1 let a = 1 if (true) { console.log(a) let a = 2 } //Uncaught ReferenceError:Cannot a 阅读全文
posted @ 2021-06-16 13:40 Leise 阅读(242) 评论(0) 推荐(0) 编辑