从成功:function(object){console.log(object)},我得到了响应对象,但是无法获取特定对象

时间:2014-02-11 15:10:53

标签: javascript parse-platform

我得到的响应对象为:

{"emailID":{"__type":"Pointer","className":"Employees","objectId":"Ap8MmrvYUl"},"slotNo":{"__type":"Pointer","className":"ParkingSlots","objectId":"ASyr5tgBtl"},"vehicleType":{"__type":"Pointer","className":"TypeOfVehicle","objectId":"F5R4VRExA6"},"isDeallocated":false,"isReserved":false,"allocatedDate":{"__type":"Date","iso":"2014-02-11T09:50:00.000Z"},"objectId":"earFXqNB65","createdAt":"2014-02-11T09:50:38.169Z","updatedAt":"2014-02-11T09:53:05.794Z","__type":"Object","className":"ParkingAllocationStatus"}

需要:

我想获得 assignedDate iso 值, 尝试使用

var obj = object.get("allocatedDate");
console.log(obj.iso);

但导致错误如:get不是函数或未定义。

0 个答案:

没有答案