我有这种形式的数据
var line = new Vector();
var dataJsonParse = JSON.parse(jsonString);
var row;
for (var rowK in dataJsonParse) {
row = dataJsonParse[rowK];
for (var fKey in row ) {
line.add( row[fKey] );
}
}
返回:
1,2,3,4,5,6,Z,Z,Z,Z,Z,Z,L,L,L,L,L,L,9,9,9,9,9,9
我想以这种形式:
1,Z,L,9,2,Z,L,9,3,Z,L,9,4,Z,L,9,5,Z,L,9,6,Z,L,9