push了一个引用引发的bug 徐铭源16211127 2021-10-22 130 阅读1分钟 this.recordList.push(this.record); 由于我这里push了一个record的引用,导致后续修改会出bug 修改: const cloneRecord = JSON.parse(JSON.stringify(this.record)); this.recordList.push(cloneRecord);