珠峰-架构6-es6

let aa = 123;
{
    console.log(aa); // 123
}
// -----
let aa = 123;
{
    console.log(aa); // 报错 aa is not defined
    let aa = 456;
}

 

posted @ 2019-09-24 07:56  飘然离去  阅读(342)  评论(0编辑  收藏  举报