檢索對象數組的值假設一個假的JSON響應, 我有這個JSON字符串...如何通過JSON解析在Appcelerator的
[{"A":"1","B":{"name":"joe","lastname":"jones"},"COLORS:{"red":"rojo","blue":"azul"},"active":"yes"}]
我想的名字「喬」這是我認爲:在iphone應用程序的JAVASCRIPT中的 !!!
var json = this.responseText;
var response = JSON.parse(json);
alert("hi " + response.B.name);
//the output should be " hi joe"!!
,但沒有任何反應....警示一片空白...... 任何幫助將apreciated
rupGo
whoooooohooooooooooooooooooo !!!!感謝brou !!!!!!!你釘住了我的問題! – rupGo 2011-03-16 23:56:42