把一个数组forEach循环出来的值用“,”拼接起来
const list = [{type: "string", value: "字符串一"}, {type: "string", value: "字符串二"}, {type: "string", value: "字符串三"}]
const newList = []
list.forEach(arg => {
newList.push(arg.value)
})
const str = newList.join(",")
console.log(str) // 字符串一,字符串二,字符串三