我在服务器上发送一些请求,它回复我这个:
{
"count": 100,
"entries": [
{
"id": 7563,
"application": "my-app",
"user": "admin",
"time": "2012-10-10T11:32:09.324+07:00",
"values": {
"/my-app/name": "4d79f56b-1a20-4b25-bff6-b5f1d7253790"
}
},
{
"id": 7561,
"application": "my-app",
"user": "admin",
"time": "2012-10-10T11:32:08.687+07:00",
"values": {
"/my-app/name": "4d79f56b-1a20-4b25-bff6-b5f1d7253790"
}
}
}
我试过了,但似乎没有什么对我有用!
var my_JSON_object = {};
var xmlhttp = new XMLHttpRequest();
my_JSON_object = JSON.parse(xmlhttp.responseText);
xmlhttp.open("GET",url,true);
xmlhttp.sand();
一切都很好。但值返回 null。
任何帮助,将不胜感激!