moyan's life

vuePress-theme-reco moyanfaker    2017 - 2021
moyan's life moyan's life

Choose mode

  • dark
  • auto
  • light
Home
Category
  • ES6
  • 闭包
  • js的未来
  • 数组
  • Typescript
  • 函数式编程
  • 防抖和节流
Tag
TimeLine
Docs
  • vuepress-reco
Contact
  • GitHub
author-avatar

moyanfaker

12

Article

12

Tag

Home
Category
  • ES6
  • 闭包
  • js的未来
  • 数组
  • Typescript
  • 函数式编程
  • 防抖和节流
Tag
TimeLine
Docs
  • vuepress-reco
Contact
  • GitHub

ES7/8/9

vuePress-theme-reco moyanfaker    2017 - 2021

ES7/8/9

moyanfaker 2020-12-15 ES7/8/9js

# ES7/8/9

# ES7

# 幂操作

//   console.log(Math.pow(3, 5));
console.log(3 ** 5); //ES7
1
2

# Array

# includes

<script>
  let arr = [12, 55, 66, 33, 23]; console.log(12 in arr); //false
  console.log(arr.indexOf(12) != -1); //true //ES7
  console.log(arr.includes(12));//true
</script>
1
2
3
4
5

# ES8:

# async/await

# ES9:

# rest/spread

# 异步迭代

# Promise.all/race/finally

# 正则表达式


# ES6

  • 基础语法:变量 、函数
  • babel
  • 异步操作:Promise、async/await
  • 面向对象、模块化

#