摘要: es6支持通过let关键字声明属于单独块{}的变量,更好的管理变量作用屿 funtion foo() { var a=1; if (a>1) { let b=2; //只属于if模块 while(b<5) { let c=b*2;cc只属于while循环 b++; console.log(a+c) 阅读全文
posted @ 2019-09-02 22:36 agang_19 阅读(155) 评论(0) 推荐(0) 编辑