摘自: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/

  打开如下图所示,会展示当前环境对具体模块的支持情况

检测当前运行环境对es6的支持

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-08-16
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
猜你喜欢
  • 2022-12-23
  • 2022-03-01
  • 2021-12-10
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
相关资源
相似解决方案