let:用来定义变量特点:只能在代码块里面使用,let拥有块级作用域;并且let不允许重复声明; 比如: var a = 12; var a = 5; alert(a); //5; let a = 12; let a = 5; alert(a); //报错;Identifier 'a' has al Read More
posted @ 2016-12-02 11:23 Pond Views(257) Comments(0) Diggs(0)