下面我有一個數組,數組轉換問題
var array = {
"Id":[1,2,3],
"Name":["one","two","five"],
"row":[8,9,7]
}
,但我想把它改造成
var array2 =
{"data":
[
{"Id":1,"Name":"one","Row:8"},
{"Id":2,"Name":"two","Row:9"},
{"Id":3,"Name":"five","Row:7"},
]
}
這可能嗎?
這不是一個數組。 – 2011-04-12 14:18:11