72
ES6会这些就够了
source link: https://juejin.im/post/5abf531d6fb9a028dc412419
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1. let、const 1.1 var存在的问题 var有作用域问题(会污染全局作用域) var可已重复声明 var会变量提升预解释 var不能定义常量 1.2 let、const特性 let、const不可以重复声明 let、const不会声明到全局
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK