样例1:
const { xxx } = this.state; 上面的写法是es6的写法,其实就相当于: const xxx = this.state.xxx
样例2:
const {comment,index,deleteComment} = this 上面的这句话是一个简写,最终的含义相当于 const comment = this.comment const index = this.index const deleteComment = this.deleteComment
const { xxx } = this.state; 上面的写法是es6的写法,其实就相当于: const xxx = this.state.xxx
样例2:
const {comment,index,deleteComment} = this 上面的这句话是一个简写,最终的含义相当于 const comment = this.comment const index = this.index const deleteComment = this.deleteComment
道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。