大概写了个,应该可以满足你的要求:
json = [
{"time": "1122", "a": "123", "b": "234"},
{"time": "1133", "a": "456", "b": "567"}
]
var arr = [];
for(var i=0;ivar tmp = json[i],temp=[]
for (o in tmp) {
temp.push(tmp[o]);
}
arr.push(temp)
}
console.log(arr)
var array = [];
var json={"time":"1122","a":"123","b":"234"} , {"time":"1133","a":"456","b":"567"};
for(var i=0; i < json.length; i++){
var arrayTemp = [];
arrayTemp .push(json[i].time);
arrayTemp .push(json[i].a);
arrayTemp .push(json[i].b);
array .push(arrayTemp);
}