我不知道如何使用es6对象解构来存储数组的长度:
const length = this.props.options.length;
语法是这样的:
const { length } = this.props.options