获取json对象的键数组和值数组 const obj = {a: 1, b: 2, c: 3}; Object.values(obj);//[1, 2, 3] Object.keys(obj);//["a", "b", "c"] 若对您有用,请赞助个棒棒糖~