摘要: /*es6 是强制使用严格模式*/ /**/ function test(){ for(let i=0;i<10;i++){ console.log(i)//let生命的变量只在其声明的代码块中起作用{} } //console.log(i);//报引用错误而不是undefined } test(); //let a=1; //let a=2;//index.js:56 Uncaugh... 阅读全文
posted @ 2017-06-15 16:08 刘浩2561179983 阅读(161) 评论(0) 推荐(0) 编辑