最近團隊在改寫上一版本的產品,從ES5 改版到 ES6。發現 ES6 除了在功能上的成熟穩定之外,它令開發者可以少打很多字,完全沒有反對使用它的理由。
在 ES5 跳糟到 ES6 的過程中參考了很多文件, 我最喜歡的是 Azat 寫的這篇文章,列了10個它的重點:
1. Default Parameters
2. Template Literals
3. Multi-line Strings
4. Destructuring Assignment
5. Enhanced Object Literals
6. Arrow Functions
7. Promises
8. Block-Scoped Constructs Let and Const
9. Classes
10. Modules
閱讀更多:
http://bit.ly/2gSfvum
https:[email protected]/*