1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Update intro.md

Add the node command line of cmd for windows about support ES6
This commit is contained in:
sniper8341 2019-01-10 11:37:42 +08:00 committed by GitHub
parent 7791c64d30
commit 2b1600fed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,12 @@ $ node --v8-options | grep harmony
上面命令的输出结果,会因为版本的不同而有所不同。
如果是新手使用的是windows环境下的node环境想要查看 Node 已经实现的特性,代码如下:
```bash
node --V8-option | findstr harmony
```
我写了一个工具 [ES-Checker](https://github.com/ruanyf/es-checker),用来检查各种运行环境对 ES6 的支持情况。访问[ruanyf.github.io/es-checker](http://ruanyf.github.io/es-checker),可以看到您的浏览器支持 ES6 的程度。运行下面的命令,可以查看你正在使用的 Node 环境对 ES6 的支持程度。
```bash