定义:ES6允许按照一定模式,从数组和对象中提取值,对变量进行赋值,这被称为解构(Destructuring)
const { date } = this.state;
//等价于
const date = this.state.date
定义:ES6允许按照一定模式,从数组和对象中提取值,对变量进行赋值,这被称为解构(Destructuring)
const { date } = this.state;
//等价于
const date = this.state.date