摘要: JavaScript中var、let和const的区别 var声明 无论变量在何处被声明,使用关键字var声明的变量,都会被当作在当前作用域顶部声明的,这个现象被称作变量提升。 function getValue(){ if(condition){ var value = 'something'; 阅读全文
posted @ 2020-11-07 19:24 裏Arashi 阅读(58) 评论(0) 推荐(0) 编辑