var Data1 = [
{ time: 1440491658, a: 1 },
{ time: 1440491668, a: 3 },
{ time: 1440491668, b: 5 },
{ time: 1440491668, c: 7 },
{ time: 1440491668, d: 12 },
{ time: 1440491678, a: 11 },
{ time: 1440491678, b: 88 },
{ time: 1440491678, c: 13 },
{ time: 1440491678, d: 100 },
{ time: 1440491688, a: 11 },
{ time: 1440491688, b: 69 },
{ time: 1440491688, c: 12 },
{ time: 1440491688, d: 73 }
];
var Data2 = [
{ time: 1440491658, a: 1 },
{ time: 1440491668, a: 3, b: 5, c: 7, d: 12 },
{ time: 1440491678, a: 11, b: 88, c: 13, d: 100},
{ time: 1440491688, a: 11, b: 69, c: 12, d: 73 }
];
//如何将data1的json转换成data2的格式??
万千封印
相关分类