Нет, он не сравнивает user_id же с 1.
|
for(var i=0;i<response.length;i++) if(response[i].user_id ==1) alert(response[i].message); |
stqel,
На jQ: $.getJSON("http://undershot.ru/my.json",function(a){ for(i in a.response){ if(a.response[i].user_id==1) alert(a.response[i].message) }; }) |
DooMer,
UnderShot, Спасибо, оба варианта работают!) |
Часовой пояс GMT +3, время: 14:09. |