摘要: 前提 ES5只有函数作用域和全局作用域,var属于ES5。let属于ES6,新增块级作用域。目的是可以写更安全的代码。 The let statement declares a block scope local variable, optionally initializing it to a v 阅读全文
posted @ 2019-07-19 13:57 Rocin 阅读(758) 评论(0) 推荐(0) 编辑