摘要: 1. let和var是声明变量的,const是声明常量的 2. let和const不存在变量提升 3. let 和const不允许重复声明 4. 块级作用域 块级作用域存在于 const和let 花括号{} if(true) { let s = 1; const j = 2 } console.lo 阅读全文
posted @ 2020-01-13 17:38 张石磊博客 阅读(2860) 评论(0) 推荐(0)