摘自:http://es6.ruanyifeng.com/#docs/intro
1、查看 node 已經實現的 es6 特性
// Linux & Mac
$ node --v8-options | grep harmony // Windows
$ node --v8-options | findstr harmony
2、阮一峰老師寫了一個工具 ES-Checker,用來檢查各種運行環境對 ES6 的支持情況
$ npm install -g es-checker $ es-checker ========================================= Passes 24 feature Detections Your runtime supports 57% of ECMAScript 6
=========================================
3、訪問網址查看當前環境對 es6 的支持情況
http://ruanyf.github.io/es-checker/
打開如下圖所示,會展示當前環境對具體模塊的支持情況