0

I have json data like following way:

[2, 1, ["55", "54"]]

How can i get 55 and 54

Thanks

4

2 回答 2

0
var arr = [2, 1, ["55", "54"]];

arr[2][0] // 55
arr[2][1] // 54
于 2013-09-19T11:38:29.433 回答
0

var a = [2, 1, ["55", "54"]];

This is an array. So, you access them by index.

here a[2]=["55", "54"]

To access 55

a[2][0]

To access 54

a[2][1]

于 2013-09-19T11:40:19.383 回答