$.ajax({
type: "get",
url: "user.php",
data: "act=async_order_list&amount=3&last=0",
dataType: "text",
success: function(data) {
var json = eval('(' + data + ')');
console.log(json);
for (var i = 0; i & lt; json.length; i++) {
alert(json[i].text + " " + json[i].value)
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
console.log(errorThrown);
}
});
ps:注意dataType的返回类型是什么,否则容易出错
