{"PatientPastMedicalHistoryGetResult":{"PastMedicalHistory":[]}}
The PastMedicalHistory array is NU开发者_如何转开发ll without values. How can i check it.
if (response.PatientPastMedicalHistoryGetResult.PastMedicalHistory.length == 0) {
}
And this isn't null. This is an empty array.
If you have null in response, Try
var data = {"PatientPastMedicalHistoryGetResult":{"PastMedicalHistory":[]}};
for (member in data) {
if (data[member] != null)
// Do work here
}
精彩评论