ECMAScript 6 Features 中文版
Introduction 簡介
ECMAScript 6 is the upcoming version of the ECMAScript standard. This standard is targeting ratification in June 2015. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.
ECMAScript 6 是 ECMAScript 的下一代標準,預計將在 2015年6月 正式發布。ES6 的發布將是是這門語言自 2009 年 ES5 正式發布以來的首次更新,是一次富有意義的更新。Javascript核心引擎的新特性仍然在快速開發中。
See the draft ES6 standard for full specification of the ECMAScript 6 language.
這里有ES6標準草案的所有細節可以參考
ES6 includes the following new features:
ES6 的具體特性如下:
- Arrows 箭頭函數
- classes 類
- enhanced object literals 增強的對象字面量
- template strings 模板字符串
- destructuring 解構
- default + rest + spread 默認值+多余參數組合+參數伸展
- let + const let + const 操作符
- iterators + for..of 迭代器 + for...of
- generators 生成器
- unicode 統一碼
- modules 模塊
- module loaders 模塊加載器
- map + set + weakmap + weakset 數據結構
- proxies 代理
- symbols 符號
- subclassable built-ins 可子類化內建對象
- promises 對象
- math + number + string + object APIs
- binary and octal literals 二進制和八進制字面量
- reflect api 反射API
- tail calls 尾調用
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!