if (json.ScheduleCareProviderScheduledPatientsGetResult.Appointments[i].Patient.Firstname.toUpperCase().indexOf(searchBarValue.toUpperCase()) == 0) {
为什么会出现这个错误。
最佳答案
因为
json.ScheduleCareProviderScheduledPatientsGetResult.Appointments[i].Patient.Firstname
未定义。
关于javascript - 无法调用未定义的方法 toUpperCase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5789989/