我得到的响应对象为:
{"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不是函数或未定义。