var id2Search = res[i].AccountablePerson;
var foundItem = $filter('filter')($scope.Receptionist_list, { EmpId: parseInt(id2Search) }, true)[0];
var index = $scope.Receptionist_list.indexOf(foundItem);
$scope.ReceptionPer = $scope.Receptionist_list[index];
此代码在Firefox上正常运行但在Chrome中无效,
我得到的错误是:Cannot read property 0 of undefined
有什么建议吗?