let index = parseInt(e.currentTarget.dataset.index);
let indexUp = parseInt(index-1);
let editMessage = this.editMessage;
[this.editMessage[index], this.editMessage[indexUp]] = [this.editMessage[indexUp], this.editMessage[index]];
console.log(this.editMessage) // 数组内部元素已经发生改变
Sillong
- 发布:2019-11-22 10:42
- 更新:2019-11-22 10:43
- 阅读:1085
1 个回复
Sillong (作者)
目前解决方式: