Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guoyongfeng/es6-demo

ES6 学习示例demo
https://github.com/guoyongfeng/es6-demo

Last synced: 1 day ago
JSON representation

ES6 学习示例demo

Awesome Lists containing this project

README

        

# `ES6`学习示例

> 配套内容讲义请前往:http://guoyongfeng.github.io/idoc

## 1.How To Use

```
# 下载
$ git clone [email protected]:GuoYongfeng/es6-demo.git
# 安装依赖
$ cd es6-demo && npm install
# 启动
$ npm run dev
```

## 2.Tabel Of Content

### demo1:let-and-const

- let块级作用域
- const恒量定义

### demo2:destructuring

对象、数组的解构赋值

### demo3:template-string

字符串模板

### demo4:arrow-function

箭头函数以及函数传参的默认值

### demo5:spread

spread 展开操作符

### demo6:rest

rest 剩余操作符

### demo7:object

- Object.is()
- Object.assign()
- super
- __proto__

### demo8:generator

generators

### demo9:class

- class
- get
- set
- static
- extends

### demo10:modules

- import
- export

## 3.LICENSE

The MIT License (MIT)

Copyright (c) 2016 GuoYongfeng