this.specValueIdList = '';
for (var i = 0; i < data.length; i++) {
if (i == data.length - 1) {
this.specValueIdList = this.specValueIdList + data[i].specValueId;
} else {
this.specValueIdList = this.specValueIdList + data[i].specValueId + ",";
}
}
如何将字符串数组转换成“,”隔开的字符串
最新推荐文章于 2023-03-31 14:06:50 发布