-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yibuyisheng
committed
Aug 22, 2015
1 parent
4ffa517
commit aa8e7c0
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## 4.1 尝试 ECMAScript 6 | ||
|
||
有三种简单的方式来玩儿 ES6 : | ||
|
||
* 1、 web 浏览器:使用[在线的 Babel REPL](http://babeljs.io/repl/) ,一个交互式的工具,能将 ES6 编译成 ES5 。如果选择这种方式的话就什么都不用安装。 | ||
* 2、命令行:使用 `babel-node` ,一个 Node.js 的可执行版本,它能运行 ES6 代码(在内部编译成 ES5 )。它能通过 npm 安装。 | ||
* 3、各个 JavaScript 引擎:参考 [kangax 的 ES6 兼容表格](https://kangax.github.io/compat-table/es6/),这个表格能查出在某个引擎中本地支持哪些 ES6 特性。 | ||
|
||
后续将会更详细地介绍第一和第二选项。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# 4 进入ECMAScript6开发 | ||
本章介绍你如何在当前的javascript环境中部署ECMAScript6。它的选择涵盖了很多工具。如果你想要一个全面的工具清单,我建议你可以看一下Addy Osmani的["ECMAScript6 工具集"](https://github.com/addyosmani/es6-tools) | ||
# 4 进入 ECMAScript 6 的第一步 | ||
|
||
本章帮助你进入 ECMAScript 6 的开发: | ||
|
||
* 讲解了如何交互式地尝试 ES6 。 | ||
* 列出了易于理解的 ES6 特性,顺便讲解了这些特性在 ES5 中如何实现。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters