数组的splice方法会改变原数据的结构 for (let i = index; i < dataList.length - 1; i++) { this.dataList.splice(i, 1); i--; } 需要i–进行下标修正,index为指定下标