📅  最后修改于: 2022-03-11 14:48:32.786000             🧑  作者: Mango
const data = {
a: "first",
b: "second",
};
const values = Object.keys(data).map(key => data[key]);
const commaJoinedValues = values.join(",");
console.log(commaJoinedValues);