[ES6] Javascript 必須知道的10個 Feature
最近團隊在改寫上一版本的產品,從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://medium.com/@peterchang_82818/es6-10-features-javascript-developer-must-know-98b9782bef44#.bmn8q5yzo
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.160.135.212
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1480781810.A.45A.html
※ 編輯: danceofdie (1.160.135.212), 12/04/2016 00:33:03
※ 編輯: danceofdie (1.160.135.212), 12/04/2016 00:40:40
推
12/04 01:58, , 1F
12/04 01:58, 1F
推
12/04 03:02, , 2F
12/04 03:02, 2F
推
12/04 12:09, , 3F
12/04 12:09, 3F
推
12/04 12:35, , 4F
12/04 12:35, 4F
→
12/04 13:45, , 5F
12/04 13:45, 5F
→
12/04 14:31, , 6F
12/04 14:31, 6F
→
12/04 14:31, , 7F
12/04 14:31, 7F
→
12/04 14:32, , 8F
12/04 14:32, 8F