一、代码
let touristIds = ''; for (let i = 0; i < this.refundOrderDetail.length; i++) { touristIds += `${this.refundOrderDetail[i].ids},`; } console.log(touristIds);
二、效果