const { xxx } = this.state; 上面的写法是es6的写法,其实就相当于: const xxx = this.state.xxx
样例2:
const {comment,index,deleteComment} = this 上面的这句话是一个简写,最终的含义相当于const comment = this.commentconst index = this.indexconst deleteComment = this.deleteComment