我在鈦新希望顯示遠程服務器的數據我的目標是傳遞對象值的for循環鈦
Object
todo: Array[2]
0: Object
todo: "Khaleeq Raza"
__proto__: Object
1: Object
todo: "Ateeq Raza"
__proto__: Object
length: 2
__proto__: Array[0]
__proto__: Object
VM90:10
我的代碼是在鈦合金打造行,並希望把數據
var client = new XMLHttpRequest();
client.open("GET", "http://192.168.1.109/read_todo_list.php", true);
client.send();
client.onreadystatechange = function(){
if (client.readyState==4 && client.status==200)
{
json = JSON.stringify(client.response);
var get=JSON.parse(json);
for(var i=0; i<get.length; i++){
var row = Ti.UI.createTableViewRow({
title: get[i].todo,
hasChild : true,
});
dataArray.push(row);
}
$.tableView.setData(dataArray);
}
};
,但我沒有得到任何展示什麼都能b題請幫忙
您已經發布了三次相同的問題.. –