Giter Site home page Giter Site logo

es6-demo's Introduction

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

es6-demo's People

Contributors

guoyongfeng avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.