Angular js下拉列表选择了Item绑定

时间:2016-02-05 08:33:46

标签: javascript jquery angularjs

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

有什么建议吗?

0 个答案:

没有答案