变量
箭头函数
方便
修正 this
参数扩展
参数扩展
默认参数
如果b为空则默认等于5
function a(a, b=5){
}
数组方法
字符串
`${a}xxxx${b}`
Promise 异步操作
generator
分解执行步骤
function *show(){
yield
}
yiled左边是执行结果 右边是执行主体
Json
解构赋值
面向对象
class Test{
constructor(){
}
getxxx(){
}
}
class test2 extends test{
constructor(){
super()
}
第一个为构造方法
第二个为对象方法
第三个继承类