mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
edit css/app
This commit is contained in:
parent
5ba45f4cfa
commit
f68e86f38b
@ -82,13 +82,20 @@ body {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
#sidebar ol {
|
||||
margin: 0;
|
||||
padding-left: 10px;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
#sidebar ul li:before { /* a hack to have dashes as a list style */
|
||||
content: "-";
|
||||
position: relative;
|
||||
left: -5px;
|
||||
}
|
||||
|
||||
#sidebar ul li {
|
||||
#sidebar ul li,
|
||||
#sidebar ol li {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.2rem;
|
||||
margin-left: 10px;
|
||||
|
@ -43,9 +43,19 @@ Google公司的V8引擎已经部署了ES6的部分特性。使用node.js 0.11版
|
||||
node.js的0.11版还不是稳定版本,要使用版本管理工具[nvm](https://github.com/creationix/nvm)切换。下载nvm以后,进入项目目录,运行下面的命令。
|
||||
|
||||
```bash
|
||||
|
||||
source nvm.sh
|
||||
nvm use 0.11
|
||||
node --harmony
|
||||
|
||||
```
|
||||
|
||||
启动命令中的--harmony选项可以打开大部分的ES6功能,但是还是--use_strict选项打开块级作用域功能、--harmony_generators选项打开generator功能。使用下面的命令,可以查看所有与ES6有关的选项。
|
||||
|
||||
```bash
|
||||
|
||||
node --v8-options | grep harmony
|
||||
|
||||
```
|
||||
|
||||
另外,可以使用Google的[Traceur](https://github.com/google/traceur-compiler),将ES6代码编译为ES5。
|
||||
|
30
sidebar.md
30
sidebar.md
@ -5,21 +5,21 @@
|
||||
授权:<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">署名-非商用许可证</a>
|
||||
|
||||
## 目录
|
||||
0. [前言](#README)
|
||||
0. [ECMAScript 6简介](#docs/intro)
|
||||
0. [let和const命令](#docs/let)
|
||||
0. [多变量的模式赋值](#docs/destructuring)
|
||||
0. [数组推导](#docs/comprehension)
|
||||
0. [字符串的扩展](#docs/string)
|
||||
0. [数值的扩展](#docs/number)
|
||||
0. [对象的扩展](#docs/object)
|
||||
0. [函数的扩展](#docs/function)
|
||||
0. [Set和Map数据结构](#docs/set-map)
|
||||
0. [Iterator和for...of循环](#docs/iterator)
|
||||
0. [Generator函数](#docs/generator)
|
||||
0. [Promise对象](#docs/promise)
|
||||
0. [Class和Module](#docs/class)
|
||||
0. [参考链接](#docs/reference)
|
||||
1. [前言](#README)
|
||||
1. [ECMAScript 6简介](#docs/intro)
|
||||
1. [let和const命令](#docs/let)
|
||||
1. [多变量的模式赋值](#docs/destructuring)
|
||||
1. [数组推导](#docs/comprehension)
|
||||
1. [字符串的扩展](#docs/string)
|
||||
1. [数值的扩展](#docs/number)
|
||||
1. [对象的扩展](#docs/object)
|
||||
1. [函数的扩展](#docs/function)
|
||||
1. [Set和Map数据结构](#docs/set-map)
|
||||
1. [Iterator和for...of循环](#docs/iterator)
|
||||
1. [Generator函数](#docs/generator)
|
||||
1. [Promise对象](#docs/promise)
|
||||
1. [Class和Module](#docs/class)
|
||||
1. [参考链接](#docs/reference)
|
||||
|
||||
## 其他
|
||||
- [源码](http://github.com/ruanyf/es6tutorial/)
|
||||
|
Loading…
x
Reference in New Issue
Block a user