获取对象key var partKeys = Object.keys(data); xValue.push(partKeys); 获取对象values var partValues = Object.values(data); seriesData.push(partValues);