Skip to content

Commit c978397

Browse files
committed
docs(intro): edit #790
1 parent 320adf2 commit c978397

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/intro.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,11 @@ ES6 从开始制定到最后发布,整整用了 15 年。
7575
Node 是 JavaScript 的服务器运行环境(runtime)。它对 ES6 的支持度更高。除了那些默认打开的功能,还有一些语法功能已经实现了,但是默认没有打开。使用下面的命令,可以查看 Node 已经实现的 ES6 特性。
7676

7777
```bash
78+
// Linux & Mac
7879
$ node --v8-options | grep harmony
79-
```
80-
81-
上面命令的输出结果,会因为版本的不同而有所不同。
8280

83-
如果是新手,使用的是windows环境下的node环境,想要查看 Node 已经实现的特性,代码如下:
84-
85-
```bash
86-
node --V8-option | findstr harmony
81+
// Windows
82+
$ node --V8-option | findstr harmony
8783
```
8884

8985
我写了一个工具 [ES-Checker](https://github.com/ruanyf/es-checker),用来检查各种运行环境对 ES6 的支持情况。访问[ruanyf.github.io/es-checker](http://ruanyf.github.io/es-checker),可以看到您的浏览器支持 ES6 的程度。运行下面的命令,可以查看你正在使用的 Node 环境对 ES6 的支持程度。

0 commit comments

Comments
 (0)