摘要: let与const ES6为了解决缺少块级作用域的问题,新增了let与const 暂时性死区 使用let与const声明的变量与其所在的块级作用域相绑定 var o=1; { console.log(o) //ReferenceError: Cannot access 'o' before init 阅读全文
posted @ 2020-05-06 19:49 .7\0 阅读(156) 评论(0) 推荐(0)