Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

4 of 4
Commonmark migration

If there are only arrays inside the DATA and you need each array, then do it like this:

for(var i in response.DATA){
 alert(response.DATA[i]);
}

Otherwise if you want all the values tps, tvq, 10.0, and 20.0, then do it like this:

for(var i in response.DATA[0]){
 alert(response.DATA[0][i]);
}

Update

var arrData = response.DATA[0],
 sizeOfData = arrData.length,
 i = 0;
for(i; i < sizeOfData; i++){
 alert(arrData[i]);
}
Shef
  • 45.7k
  • 15
  • 82
  • 91

AltStyle によって変換されたページ (->オリジナル) /